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

Attachment: zmq_nothrow.hpp
Description: Binary data

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to