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.cpp | |
parent | 2cef05d86976784f4bc1083cb0fa548e267ac132 (diff) |
all news converted to nothrow variant
Diffstat (limited to 'src/zmq_connecter.cpp')
-rw-r--r-- | src/zmq_connecter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zmq_connecter.cpp b/src/zmq_connecter.cpp index cd7d1b5..5bda48d 100644 --- a/src/zmq_connecter.cpp +++ b/src/zmq_connecter.cpp @@ -17,6 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <new> + #include "zmq_connecter.hpp" #include "zmq_connecter_init.hpp" #include "io_thread.hpp" @@ -87,8 +89,8 @@ void zmq::zmq_connecter_t::out_event () // Create an init object. io_thread_t *io_thread = choose_io_thread (options.affinity); - zmq_connecter_init_t *init = new zmq_connecter_init_t (io_thread, owner, - fd, options, session_name.c_str (), address.c_str ()); + zmq_connecter_init_t *init = new (std::nothrow) zmq_connecter_init_t ( + io_thread, owner, fd, options, session_name.c_str (), address.c_str ()); zmq_assert (init); send_plug (init); send_own (owner, init); |