diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-11-06 12:26:05 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-11-07 09:57:24 +0900 |
commit | 64698daeb5aa5eec5da8cd60ff18c05e2d155102 (patch) | |
tree | 29da0b56a047dc5bc2fc176891a0daaa31fdb4c0 | |
parent | d4c92b39df3662064be0c002fd6ae2e181f64b75 (diff) | |
download | efl-64698daeb5aa5eec5da8cd60ff18c05e2d155102.tar.gz |
cxx: Add support for operator == with objects
-rw-r--r-- | src/bindings/cxx/eo_cxx/eo_wref.hh | 12 |
1 files changed, 12 insertions, 0 deletions
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() { |