diff options
Diffstat (limited to 'src/io_thread.cpp')
-rw-r--r-- | src/io_thread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. */ +#include <new> + #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); |