From ec2e85919e4a34a313e6d0df84cc421bc9682ad8 Mon Sep 17 00:00:00 2001 From: Ilja Golshtein Date: Wed, 29 Sep 2010 10:09:03 +0200 Subject: C++ binding destructors don't throw exceptions --- AUTHORS | 1 + include/zmq.hpp | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/AUTHORS b/AUTHORS index f39e01c..c679178 100644 --- a/AUTHORS +++ b/AUTHORS @@ -18,6 +18,7 @@ Frank Denis George Neill Gonzalo Diethelm Guido Goldstein +Ilja Golshtein Ivo Danihelka Joe Thornber Jon Dyte 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* () -- cgit v1.2.3