summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/zmq.hpp6
1 files changed, 2 insertions, 4 deletions
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* ()