diff --git a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh index d77bcf21e0..17cc390270 100644 --- a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh +++ b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh @@ -292,7 +292,7 @@ template T convert_to_c(V&& object); template -void* data_function_ptr_to_c(T function) +void* data_function_ptr_to_c(T) { return nullptr; } @@ -437,6 +437,10 @@ inline Eina_Value* convert_to_c_impl( ::efl::eina::value_view const& v, tag(v.native_handle()); } +inline Eina_Value const& convert_to_c_impl( ::efl::eina::value_view const& v, tag::type>) +{ + return *v.native_handle(); +} inline Eina_Bool convert_to_c_impl( bool b, tag) { return b;