summaryrefslogtreecommitdiff
path: root/src/bindings/cxx/eo_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-10-30 21:05:39 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-10-30 21:05:39 -0200
commitde349e1b9e8f34381747ed8d57c56577bd353a6b (patch)
tree0729332315b564572c56e6b8a1d85aea70105af6 /src/bindings/cxx/eo_cxx
parent059613222a288b5efe8e2bf514cdcfe17704e589 (diff)
eo-cxx: Fix compilation error with any_value received by value
Diffstat (limited to 'src/bindings/cxx/eo_cxx')
-rw-r--r--src/bindings/cxx/eo_cxx/eo_cxx_interop.hh6
1 files changed, 5 insertions, 1 deletions
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>
292T convert_to_c(V&& object); 292T convert_to_c(V&& object);
293 293
294template <typename F, typename T> 294template <typename F, typename T>
295void* data_function_ptr_to_c(T function) 295void* data_function_ptr_to_c(T)
296{ 296{
297 return nullptr; 297 return nullptr;
298} 298}
@@ -437,6 +437,10 @@ inline Eina_Value* convert_to_c_impl( ::efl::eina::value_view const& v, tag<Eina
437{ 437{
438 return const_cast<Eina_Value*>(v.native_handle()); 438 return const_cast<Eina_Value*>(v.native_handle());
439} 439}
440inline Eina_Value const& convert_to_c_impl( ::efl::eina::value_view const& v, tag<Eina_Value, in_traits<eina::value_view const&>::type>)
441{
442 return *v.native_handle();
443}
440inline Eina_Bool convert_to_c_impl( bool b, tag<Eina_Bool, bool>) 444inline Eina_Bool convert_to_c_impl( bool b, tag<Eina_Bool, bool>)
441{ 445{
442 return b; 446 return b;