diff options
Diffstat (limited to 'src/pgm_receiver.cpp')
-rw-r--r-- | src/pgm_receiver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pgm_receiver.cpp b/src/pgm_receiver.cpp index e3f7996..2a24858 100644 --- a/src/pgm_receiver.cpp +++ b/src/pgm_receiver.cpp @@ -21,6 +21,8 @@ #if defined ZMQ_HAVE_OPENPGM +#include <new> + #ifdef ZMQ_HAVE_WINDOWS #include "windows.hpp" #endif @@ -171,7 +173,7 @@ void zmq::pgm_receiver_t::in_event () it->second.joined = true; // Create and connect decoder for joined peer. - it->second.decoder = new zmq_decoder_t (0, NULL, 0); + it->second.decoder = new (std::nothrow) zmq_decoder_t (0, NULL, 0); it->second.decoder->set_inout (inout); } |