[zeromq-dev] (no subject)

Martin Sustrik sustrik at 250bpm.com
Wed Apr 20 15:15:16 CEST 2011


Hi Ilja,

> .. on the second thought it is not as straightforward and C API methods must be called with const_cast,
> though I still think it is worth doing.

Before changing the const signatures I would say we should make it clear 
what constant zmq_msg_t means.

Keep in mind that zmq_msg_t is a BLOB descriptor rather than BLOB 
itself. In other words, several zmq_msg_t's can point to the same 
physical BLOB.

So, does const zmq_msg_t mean that the descriptor is constant or rather 
that the BLOB itself is constant?

Martin



More information about the zeromq-dev mailing list