Skip to content

Commit

Permalink
Removing ambiguous overload of poll
Browse files Browse the repository at this point in the history
There are two overloads of `poll` - one that has `-1` as the default value for the timeout, and one that does not have the timeout argument (which calls the previous one with -1 for the timeout). This makes it ambiguous for the compiler when `poll` is called without the timeout.

This patch removes the second overload as it is not needed since the first one already covers the same case.
  • Loading branch information
ivan-cukic authored Sep 24, 2017
1 parent 33c0df1 commit e93e9f9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,6 @@ namespace zmq
return rc;
}

inline int poll(zmq_pollitem_t const* items, size_t nitems)
{
return poll(items, nitems, -1);
}

#ifdef ZMQ_CPP11
inline int poll(zmq_pollitem_t const* items, size_t nitems, std::chrono::milliseconds timeout)
{
Expand Down

0 comments on commit e93e9f9

Please sign in to comment.