[zeromq-dev] operator void* on socket_t

Jon Dyte jon at totient.co.uk
Wed Mar 16 00:36:32 CET 2011


On IRC this evening some example code was posted up.

which contained

zmq::socket_t subscriber(context, ZMQ_SUB);


some time later

  free (subscriber);

It's obviously going to be bad if this ever executes, but the main point 
is this only
compiles because of the operator void * on the socket class.

The sooner this can be replaced with a 'handle' method the better.


More information about the zeromq-dev mailing list