diff options
author | Ilja Golshtein <ilejncs@narod.ru> | 2010-09-29 10:09:03 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-09-30 09:11:51 +0200 |
commit | ec2e85919e4a34a313e6d0df84cc421bc9682ad8 (patch) | |
tree | fcea530614eb6da7a788b9a62666c842acbbd1a3 | |
parent | d14be62499478f31cf641399982ecdf4f6f158c4 (diff) |
C++ binding destructors don't throw exceptions
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | include/zmq.hpp | 6 |
2 files changed, 3 insertions, 4 deletions
@@ -18,6 +18,7 @@ Frank Denis <zeromq@pureftpd.org> George Neill <georgen@neillnet.com> Gonzalo Diethelm <gdiethelm@dcv.cl> Guido Goldstein <zmq@a-nugget.de> +Ilja Golshtein <ilejncs@narod.ru> Ivo Danihelka <ivo@danihelka.net> Joe Thornber <joe.thornber@gmail.com> Jon Dyte <jon@totient.co.uk> diff --git a/include/zmq.hpp b/include/zmq.hpp index 86ffff6..3fb5a79 100644 --- a/include/zmq.hpp +++ b/include/zmq.hpp @@ -94,8 +94,7 @@ namespace zmq inline ~message_t () { int rc = zmq_msg_close (this); - if (rc != 0) - throw error_t (); + assert (rc == 0); } inline void rebuild () @@ -202,8 +201,7 @@ namespace zmq inline ~socket_t () { int rc = zmq_close (ptr); - if (rc != 0) - throw error_t (); + assert (rc == 0); } inline operator void* () |