diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-12-15 23:49:55 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-12-15 23:49:55 +0100 |
commit | 8aa0908635f255e2d533539d5330b92b62dc88ba (patch) | |
tree | f72f8dc99463cb0e56213dbde735ed585986cbfb /src/zmq_connecter_init.cpp | |
parent | 2cef05d86976784f4bc1083cb0fa548e267ac132 (diff) |
all news converted to nothrow variant
Diffstat (limited to 'src/zmq_connecter_init.cpp')
-rw-r--r-- | src/zmq_connecter_init.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zmq_connecter_init.cpp b/src/zmq_connecter_init.cpp index 1418429..f8436a3 100644 --- a/src/zmq_connecter_init.cpp +++ b/src/zmq_connecter_init.cpp @@ -17,6 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <new> + #include "zmq_connecter_init.hpp" #include "zmq_connecter.hpp" #include "io_thread.hpp" @@ -31,7 +33,8 @@ zmq::zmq_connecter_init_t::zmq_connecter_init_t (io_thread_t *parent_, session_name (session_name_) { // Create associated engine object. - engine = new zmq_engine_t (parent_, fd_, options, true, address_); + engine = new (std::nothrow) zmq_engine_t (parent_, fd_, options, true, + address_); zmq_assert (engine); } |