From de349e1b9e8f34381747ed8d57c56577bd353a6b Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Mon, 30 Oct 2017 21:05:39 -0200 Subject: [PATCH] eo-cxx: Fix compilation error with any_value received by value --- src/bindings/cxx/eo_cxx/eo_cxx_interop.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;