efl-cxx: Fix compilation error when using a ptr to const any_value

Reviewers: lauromoura, cedric

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7858
This commit is contained in:
Felipe Magno de Almeida 2019-02-01 10:46:52 +00:00 committed by Carsten Haitzler (Rasterman)
parent 32a2268f46
commit 36286a23fe
1 changed files with 4 additions and 0 deletions

View File

@ -707,6 +707,10 @@ inline efl::eina::value_view convert_to_return(Eina_Value* value, tag<Eina_Value
{
return efl::eina::value_view{value};
}
inline efl::eina::value_view convert_to_return(Eina_Value const* value, tag<Eina_Value const*, efl::eina::value_view const>)
{
return efl::eina::value_view{const_cast<Eina_Value*>(value)};
}
template <typename T, typename U>
T convert_to_return(U* value, tag<T, U*>, typename std::enable_if<is_range<T>::value || is_container<T>::value>::type* = 0)
{