eo-cxx: Fix compilation error with any_value received by value

This commit is contained in:
Felipe Magno de Almeida 2017-10-30 21:05:39 -02:00
parent 059613222a
commit de349e1b9e
1 changed files with 5 additions and 1 deletions

View File

@ -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;