From e5884c95fa19bcde5fd61179d90c75b4059c2508 Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Mon, 13 Jun 2016 01:17:18 -0300 Subject: [PATCH] eolian-cxx: Fix C++ compilation for lacking .eo files being generated --- src/Makefile_Evas.am | 4 ++-- src/bindings/cxx/eo_cxx/eo_cxx_interop.hh | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Makefile_Evas.am b/src/Makefile_Evas.am index ff099f5..f7a8f30 100644 --- a/src/Makefile_Evas.am +++ b/src/Makefile_Evas.am @@ -2374,8 +2374,8 @@ GENERATED_JS_BINDINGS += $(generated_evas_js_bindings) endif if HAVE_CXX11 -evas_eolian_cxx_hh = $(evas_eolian_pub_files:%.eo=%.eo.hh) -evas_eolian_cxx_impl = $(evas_eolian_pub_files:%.eo=%.eo.impl.hh) +evas_eolian_cxx_hh = $(evas_eolian_pub_files:%.eo=%.eo.hh) $(evas_eolian_legacy_files:%.eo=%.eo.hh) +evas_eolian_cxx_impl = $(evas_eolian_pub_files:%.eo=%.eo.impl.hh) $(evas_eolian_legacy_files:%.eo=%.eo.impl.hh) endif EXTRA_DIST2 += \ diff --git a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh index eb06ef1..f90e4f7 100644 --- a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh +++ b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh @@ -442,7 +442,12 @@ eina::range_array convert_to_return(Eina_Array const* value, tag eina::iterator convert_to_return(Eina_Iterator* value, tag>) { - return eina::iterator{value}; + return eina::iterator{ value }; +} +template +eina::accessor convert_to_return(Eina_Accessor* value, tag>) +{ + return eina::accessor{ value }; } template struct is_future : std::false_type {}; -- 2.7.4