Deprecate poll overload accepting a long timeout value

This commit is contained in:
Critical2104 2020-05-15 12:50:07 +02:00 committed by Simon Giesecke
parent 8d35b8c934
commit b0e72439bd

View File

@ -310,6 +310,7 @@ inline int poll(std::vector<zmq_pollitem_t> &items,
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)
{
return poll(items.data(), items.size(), timeout_);