diff options
author | Vitor Sousa <vitorsousasilva@gmail.com> | 2015-01-05 15:26:11 -0200 |
---|---|---|
committer | Vitor Sousa <vitorsousasilva@gmail.com> | 2015-01-05 15:52:27 -0200 |
commit | 11eff05ead1f2f21a0ab11faaedac642d9b63dd4 (patch) | |
tree | 09d445c996568570f83480d54c7ed416195ea6bc /src/bindings | |
parent | 4222cd3f50042452893bc24e85376f3c1b4ce748 (diff) | |
download | efl-11eff05ead1f2f21a0ab11faaedac642d9b63dd4.tar.gz |
eo_cxx: Implicit conversion from C++ wrapper to void* via address_of operator
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/eo_cxx/eo_concrete.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bindings/eo_cxx/eo_concrete.hh b/src/bindings/eo_cxx/eo_concrete.hh index cd72dd7e1a..63029a14e7 100644 --- a/src/bindings/eo_cxx/eo_concrete.hh +++ b/src/bindings/eo_cxx/eo_concrete.hh @@ -213,12 +213,14 @@ struct extension_inheritance<concrete> struct concrete_address_of { explicit concrete_address_of(void* p) : p(p) {} + operator void*() { return p; } void* p; }; struct concrete_address_const_of { explicit concrete_address_const_of(void const* p) : p(p) {} + operator void const*() { return p; } void const* p; }; |