diff --git a/zmq.hpp b/zmq.hpp index 35f3e76..34fe163 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -2744,8 +2744,8 @@ template class poller_t void add_impl(fd_t fd, event_flags events, T *user_data) { if (0 - != zmq_poller_add(poller_ptr.get(), fd, user_data, - static_cast(events))) { + != zmq_poller_add_fd(poller_ptr.get(), fd, user_data, + static_cast(events))) { throw error_t(); } }