jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=64698daeb5aa5eec5da8cd60ff18c05e2d155102

commit 64698daeb5aa5eec5da8cd60ff18c05e2d155102
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Mon Nov 6 12:26:05 2017 +0900

    cxx: Add support for operator == with objects
---
 src/bindings/cxx/eo_cxx/eo_wref.hh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/bindings/cxx/eo_cxx/eo_wref.hh 
b/src/bindings/cxx/eo_cxx/eo_wref.hh
index 124b1da3b7..e28409c513 100644
--- a/src/bindings/cxx/eo_cxx/eo_wref.hh
+++ b/src/bindings/cxx/eo_cxx/eo_wref.hh
@@ -135,6 +135,18 @@ struct wref
    }
 #endif
 
+   template <typename U>
+   bool operator == (U const &other) const
+   {
+      return other._eo_ptr() == _eo_wref;
+   }
+
+   template <typename U>
+   friend bool operator == (U const &other, wref<T> const &thiz)
+   {
+      return other._eo_ptr() == thiz._eo_wref;
+   }
+
 private:
    void _add()
    {

-- 


Reply via email to