Commit ec2e8591 authored by Ilja Golshtein's avatar Ilja Golshtein Committed by Martin Sustrik

C++ binding destructors don't throw exceptions

parent d14be624
...@@ -18,6 +18,7 @@ Frank Denis <zeromq@pureftpd.org> ...@@ -18,6 +18,7 @@ Frank Denis <zeromq@pureftpd.org>
George Neill <georgen@neillnet.com> George Neill <georgen@neillnet.com>
Gonzalo Diethelm <gdiethelm@dcv.cl> Gonzalo Diethelm <gdiethelm@dcv.cl>
Guido Goldstein <zmq@a-nugget.de> Guido Goldstein <zmq@a-nugget.de>
Ilja Golshtein <ilejncs@narod.ru>
Ivo Danihelka <ivo@danihelka.net> Ivo Danihelka <ivo@danihelka.net>
Joe Thornber <joe.thornber@gmail.com> Joe Thornber <joe.thornber@gmail.com>
Jon Dyte <jon@totient.co.uk> Jon Dyte <jon@totient.co.uk>
......
...@@ -94,8 +94,7 @@ namespace zmq ...@@ -94,8 +94,7 @@ namespace zmq
inline ~message_t () inline ~message_t ()
{ {
int rc = zmq_msg_close (this); int rc = zmq_msg_close (this);
if (rc != 0) assert (rc == 0);
throw error_t ();
} }
inline void rebuild () inline void rebuild ()
...@@ -202,8 +201,7 @@ namespace zmq ...@@ -202,8 +201,7 @@ namespace zmq
inline ~socket_t () inline ~socket_t ()
{ {
int rc = zmq_close (ptr); int rc = zmq_close (ptr);
if (rc != 0) assert (rc == 0);
throw error_t ();
} }
inline operator void* () inline operator void* ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment