aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-02-01 10:46:52 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-02-01 10:51:19 +0000
commit36286a23fe97e3667c1106116d1edbc301c7a9ba (patch)
treea83a3fdcd3e22827961dce8e8e6ee5707177c909
parenteo: fix efl_isa to work propertly with interfaces (diff)
downloadefl-36286a23fe97e3667c1106116d1edbc301c7a9ba.tar.gz
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
-rw-r--r--src/bindings/cxx/eo_cxx/eo_cxx_interop.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
index c0ed323c27..4af1c56efd 100644
--- a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
+++ b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
@@ -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)
{