felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=761e6a304ca0d6e89e3a5ffff62d2cf53fbc96cb

commit 761e6a304ca0d6e89e3a5ffff62d2cf53fbc96cb
Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br>
Date:   Thu Sep 14 15:05:39 2017 -0300

    eolian-cxx: Fix example after disambiguation patch of C++ binding
---
 src/examples/eolian_cxx/eolian_cxx_simple_01.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc 
b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
index 028a429039..257f9945b1 100644
--- a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
@@ -19,14 +19,16 @@ main()
    eina_log_domain_level_set("colourable", EINA_LOG_LEVEL_DBG);
    eina_log_domain_level_set("colourablesquare", EINA_LOG_LEVEL_DBG);
 
+   using efl::eo::instantiate;
+
    int r, g, b;
    ::ns::Colourable obj1
-       ([&] { obj1.rgb_24bits_constructor(0x123456); });
+       (instantiate, [&] { obj1.rgb_24bits_constructor(0x123456); });
    obj1.colour_set(0xc0ffee);
    obj1.composite_colour_get(r, g, b);
 
    ::ns::ColourableSquare obj2
-       ([&] { obj2.size_constructor(10); });
+       (instantiate, [&] { obj2.size_constructor(10); });
    obj2.composite_colour_set(r, g, b);
    obj2.size_set(11);
    assert(obj1.colour_get() == obj2.colour_get());

-- 


Reply via email to