diff --git a/src/lib/eolian_cxx/eo_types.hh b/src/lib/eolian_cxx/eo_types.hh index f9b8946721..08bbd731fb 100644 --- a/src/lib/eolian_cxx/eo_types.hh +++ b/src/lib/eolian_cxx/eo_types.hh @@ -114,7 +114,7 @@ type_is_binding(eolian_type_instance const& type) inline eolian_type type_to_native(eolian_type const& type) { - eolian_type native = type; + eolian_type native(type); native.binding.clear(); native.category = eolian_type::simple_; return native; diff --git a/src/lib/eolian_cxx/eo_validate.hh b/src/lib/eolian_cxx/eo_validate.hh index 4f131a0192..53bfec5b4f 100644 --- a/src/lib/eolian_cxx/eo_validate.hh +++ b/src/lib/eolian_cxx/eo_validate.hh @@ -51,7 +51,7 @@ _is_valid(events_container_type const& events) template inline void -_validate(T val, const eo_class& cls) +_validate(T const& val, eo_class const& cls) { if(!_is_valid(val)) {