mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-20 21:08:37 +02:00
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:
parent
33c0df11b6
commit
e93e9f9715
5
zmq.hpp
5
zmq.hpp
@ -149,11 +149,6 @@ namespace zmq
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int poll(zmq_pollitem_t const* items, size_t nitems)
|
|
||||||
{
|
|
||||||
return poll(items, nitems, -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef ZMQ_CPP11
|
#ifdef ZMQ_CPP11
|
||||||
inline int poll(zmq_pollitem_t const* items, size_t nitems, std::chrono::milliseconds timeout)
|
inline int poll(zmq_pollitem_t const* items, size_t nitems, std::chrono::milliseconds timeout)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user