felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=de349e1b9e8f34381747ed8d57c56577bd353a6b

commit de349e1b9e8f34381747ed8d57c56577bd353a6b
Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br>
Date:   Mon Oct 30 21:05:39 2017 -0200

    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 <typename T, typename U, bool Own = false, 
typename V>
 T convert_to_c(V&& object);
 
 template <typename F, typename T>
-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<Eina
 {
   return const_cast<Eina_Value*>(v.native_handle());
 }
+inline Eina_Value const& convert_to_c_impl( ::efl::eina::value_view const& v, 
tag<Eina_Value, in_traits<eina::value_view const&>::type>)
+{
+  return *v.native_handle();
+}
 inline Eina_Bool convert_to_c_impl( bool b, tag<Eina_Bool, bool>)
 {
   return b;

-- 


Reply via email to