Removing ambiguous overload of poll

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.
This commit is contained in:
Ivan Čukić 2017-09-24 11:24:29 +02:00 committed by GitHub
parent 33c0df11b6
commit e93e9f9715

View File

@ -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)
{