summaryrefslogtreecommitdiff
path: root/include/zmq.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/zmq.hpp')
-rw-r--r--include/zmq.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/zmq.hpp b/include/zmq.hpp
index 4cfa399..e22057d 100644
--- a/include/zmq.hpp
+++ b/include/zmq.hpp
@@ -184,6 +184,14 @@ namespace zmq
assert (rc == 0);
}
+ // Be careful with this, it's probably only useful for
+ // using the C api together with an existing C++ api.
+ // Normally you should never need to use this.
+ inline operator void* ()
+ {
+ return ptr;
+ }
+
private:
void *ptr;