mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 11:31:56 +01:00
C++ binding destructors don't throw exceptions
This commit is contained in:
committed by
Martin Sustrik
parent
d14be62499
commit
ec2e85919e
@@ -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* ()
|
||||
|
||||
Reference in New Issue
Block a user