[zeromq-dev] zmq_nothrow.hpp
Martin Sustrik
sustrik at 250bpm.com
Wed Jul 21 08:45:37 CEST 2010
Matt Weinstein wrote:
> I've implemented a first version of the zmq_nothrow.
>
> It's not brilliant, and maybe it's better not to do it, it's very
> un-C++-like.
>
> However, since I've done it, I'm attaching for your thoughts --
>
> A few questions:
>
> - is __attribute__((warn_unused_result)) generally used? (I've used it
> here since you don't expect a class not to throw :-))
That's gcc-ism IMO.
> - I've added an error_ value to zmq_message_t. Not beautiful. Any
> alternatives?
Yes. That's kind of strange. The only reason is to catch the errors
during the message initialisation?
> Anyway, I'll use this domestically and wring out any misfeatures.
>
> Comments welcome -- please :-)
Martin
More information about the zeromq-dev
mailing list