We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b495021 + b0e7243 commit a2ef92eCopy full SHA for a2ef92e
zmq.hpp
@@ -310,10 +310,18 @@ inline int poll(std::vector<zmq_pollitem_t> &items,
310
return poll(items.data(), items.size(), static_cast<long>(timeout.count()));
311
}
312
313
+ZMQ_DEPRECATED("from 4.3.1, use poll taking std::chrono instead of long")
314
inline int poll(std::vector<zmq_pollitem_t> &items, long timeout_ = -1)
315
{
316
return poll(items.data(), items.size(), timeout_);
317
318
+
319
+template<std::size_t SIZE>
320
+inline int poll(std::array<zmq_pollitem_t, SIZE>& items,
321
+ std::chrono::milliseconds timeout)
322
+{
323
+ return poll(items.data(), items.size(), static_cast<long>(timeout.count()));
324
+}
325
#endif
326
327
0 commit comments