[zeromq-dev] (no subject)
Ilja Golshtein
ilejncs at yandex.ru
Wed Apr 20 14:12:33 CEST 2011
.. 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.
20.04.2011, 15:57, "Ilja Golshtein" <ilejncs at narod.ru>:
> Hello!
>
> I suggest adding "const" modifier for message_::copy and message_t::size
> like this
>
> ==
> inline void copy (message_t *msg_) const
> {
> int rc = zmq_msg_copy (this, (zmq_msg_t*) msg_);
> if (rc != 0)
> throw error_t ();
> }
>
> inline void *data ()
> {
> return zmq_msg_data (this);
> }
>
> inline size_t size () const
> {
> return zmq_msg_size (this);
> }
> ==
>
> Please, advise me what is the best place for such a small things. Should I e.g. log a github ticket?
>
> Thanks.
>
> --
> Best regards,
> Ilja Golshtein.
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
--
Best regards,
Ilja Golshtein.
More information about the zeromq-dev
mailing list