From 8aa0908635f255e2d533539d5330b92b62dc88ba Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 15 Dec 2009 23:49:55 +0100 Subject: all news converted to nothrow variant --- src/io_thread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/io_thread.cpp') diff --git a/src/io_thread.cpp b/src/io_thread.cpp index 6d4710a..1332795 100644 --- a/src/io_thread.cpp +++ b/src/io_thread.cpp @@ -17,6 +17,8 @@ along with this program. If not, see . */ +#include + #include "../bindings/c/zmq.h" #include "io_thread.hpp" @@ -31,7 +33,7 @@ zmq::io_thread_t::io_thread_t (dispatcher_t *dispatcher_, int thread_slot_, int flags_) : object_t (dispatcher_, thread_slot_) { - poller = new poller_t; + poller = new (std::nothrow) poller_t; zmq_assert (poller); signaler_handle = poller->add_fd (signaler.get_fd (), this); -- cgit v1.2.3