mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-06 00:31:14 +01:00
Deprecate poll overload accepting a long timeout value
This commit is contained in:
parent
8d35b8c934
commit
b0e72439bd
1
zmq.hpp
1
zmq.hpp
@ -310,6 +310,7 @@ inline int poll(std::vector<zmq_pollitem_t> &items,
|
|||||||
return poll(items.data(), items.size(), static_cast<long>(timeout.count()));
|
return poll(items.data(), items.size(), static_cast<long>(timeout.count()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ZMQ_DEPRECATED("from 4.3.1, use poll taking std::chrono instead of long")
|
||||||
inline int poll(std::vector<zmq_pollitem_t> &items, long timeout_ = -1)
|
inline int poll(std::vector<zmq_pollitem_t> &items, long timeout_ = -1)
|
||||||
{
|
{
|
||||||
return poll(items.data(), items.size(), timeout_);
|
return poll(items.data(), items.size(), timeout_);
|
||||||
|
Loading…
Reference in New Issue
Block a user