[zeromq-dev] zmq destructor throws?

Matt Weinstein mattweinstein at gmail.com
Mon Jul 19 19:06:19 CEST 2010


While wandering through the zmq.hpp header to implement the nothrow  
version, I noticed that many of the destructors throw(), e.g.

	inline ~message_t ()
		int rc = zmq_msg_close (this);
		if (rc != 0)
			throw error_t ();

There's a lot of debate about whether this is "good" or not, but I  
don't believe it's considered good current practice.

Should this be changed?

Comments welcome :-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100719/7d92f85b/attachment.htm 

More information about the zeromq-dev mailing list