[zeromq-dev] zmq_nothrow.hpp

Matt Weinstein mattweinstein at gmail.com
Mon Jul 19 20:39:38 CEST 2010


Folks,

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 :-))

- I've added an error_ value to zmq_message_t.  Not beautiful. Any  
alternatives?

Anyway, I'll use this domestically and wring out any misfeatures.

Comments welcome -- please :-)

Best,

Matt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zmq_nothrow.hpp
Type: application/octet-stream
Size: 5678 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100719/35f31f1c/attachment.obj>


More information about the zeromq-dev mailing list