Skip to content

Commit b0e7243

Browse files
Critical2104sigiesec
authored andcommitted
Deprecate poll overload accepting a long timeout value
1 parent 8d35b8c commit b0e7243

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zmq.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ inline int poll(std::vector<zmq_pollitem_t> &items,
310310
return poll(items.data(), items.size(), static_cast<long>(timeout.count()));
311311
}
312312

313+
ZMQ_DEPRECATED("from 4.3.1, use poll taking std::chrono instead of long")
313314
inline int poll(std::vector<zmq_pollitem_t> &items, long timeout_ = -1)
314315
{
315316
return poll(items.data(), items.size(), timeout_);

0 commit comments

Comments
 (0)