mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08:00
C++ binding destructors don't throw exceptions
This commit is contained in:
parent
d14be62499
commit
ec2e85919e
1
AUTHORS
1
AUTHORS
@ -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>
|
||||
|
@ -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* ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user