From b0e72439bdefe1a427cb626a0fc09bb4091471f2 Mon Sep 17 00:00:00 2001 From: Critical2104 Date: Fri, 15 May 2020 12:50:07 +0200 Subject: [PATCH] Deprecate poll overload accepting a long timeout value --- zmq.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/zmq.hpp b/zmq.hpp index 00e1791..260d5aa 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -310,6 +310,7 @@ inline int poll(std::vector &items, return poll(items.data(), items.size(), static_cast(timeout.count())); } +ZMQ_DEPRECATED("from 4.3.1, use poll taking std::chrono instead of long") inline int poll(std::vector &items, long timeout_ = -1) { return poll(items.data(), items.size(), timeout_);