[zeromq-dev] [PATCH] Re: c++ api issues

Burak Arslan burak.arslan at arskom.com.tr
Tue Oct 26 18:13:39 CEST 2010


----- Original message -----
> Burak,
> 
> > for the record, i did not want to const-correct just the c++ api with
> > const_cast because const_cast's sole valid use-case is
> > interoperability. so the user should choose to use it if he/she's
> > after strict const-correctness.
> > 
> > so using it inside the zeromq c++ api is simply lying to the user.
> 
> Right.
> 
> The state of the affairs can be summarised like this:
> 
> C API exposes non-const functions.
> 
> It should expose const functions instead, but that cannot be fixed till 
> 0MQ/3.0 because of backward compatibility reasons.
> 
> C++ wraps the C functions and thus inherits the const-ness issue.
>


yes, i also think this should be postponed until 3.0. it's not that much of a big deal anyway.

burak

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101026/51fad3b5/attachment.htm>


More information about the zeromq-dev mailing list