Skip to content

Commit

Permalink
Deprecate poll overload accepting a long timeout value
Browse files Browse the repository at this point in the history
  • Loading branch information
Critical2104 authored and sigiesec committed May 15, 2020
1 parent 8d35b8c commit b0e7243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit b0e7243

Please sign in to comment.