summaryrefslogtreecommitdiff
path: root/bindings/cpp/zmq.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/cpp/zmq.hpp')
-rw-r--r--bindings/cpp/zmq.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bindings/cpp/zmq.hpp b/bindings/cpp/zmq.hpp
index 5c0ba7c..8a00230 100644
--- a/bindings/cpp/zmq.hpp
+++ b/bindings/cpp/zmq.hpp
@@ -200,6 +200,11 @@ namespace zmq
throw error_t ();
}
+ inline operator void* ()
+ {
+ return ptr;
+ }
+
inline void setsockopt (int option_, const void *optval_,
size_t optvallen_)
{