Commit 042e34a5 authored by Thijs Terlouw's avatar Thijs Terlouw Committed by Martin Sustrik

operator void* () added to context_t.

Makes it possible to share the context from C++ to C.
Signed-off-by: 's avatarThijs Terlouw <thijsterlouw@gmail.com>
parent 3f758ab2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment