From 36286a23fe97e3667c1106116d1edbc301c7a9ba Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Fri, 1 Feb 2019 10:46:52 +0000 Subject: [PATCH] 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 --- src/bindings/cxx/eo_cxx/eo_cxx_interop.hh | 4 ++++ 1 file changed, 4 insertions(+) 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) +{ + return efl::eina::value_view{const_cast(value)}; +} template T convert_to_return(U* value, tag, typename std::enable_if::value || is_container::value>::type* = 0) {