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/epoll.cpp | |
parent | 2cef05d86976784f4bc1083cb0fa548e267ac132 (diff) |
all news converted to nothrow variant
Diffstat (limited to 'src/epoll.cpp')
-rw-r--r-- | src/epoll.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/epoll.cpp b/src/epoll.cpp index 8f576f8..b25883f 100644 --- a/src/epoll.cpp +++ b/src/epoll.cpp @@ -26,6 +26,7 @@ #include <string.h> #include <unistd.h> #include <algorithm> +#include <new> #include "epoll.hpp" #include "err.hpp" @@ -54,7 +55,7 @@ zmq::epoll_t::~epoll_t () zmq::epoll_t::handle_t zmq::epoll_t::add_fd (fd_t fd_, i_poll_events *events_) { - poll_entry_t *pe = new poll_entry_t; + poll_entry_t *pe = new (std::nothrow) poll_entry_t; zmq_assert (pe != NULL); // The memset is not actually needed. It's here to prevent debugging |