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 3e88f06 + 95d519f commit 7f9da8dCopy full SHA for 7f9da8d
zmq.hpp
@@ -250,12 +250,13 @@ class message_t
250
throw error_t();
251
}
252
253
- template<typename T> message_t(T first, T last) : msg()
+ template<class ForwardIter> message_t(ForwardIter first, ForwardIter last)
254
{
255
- typedef typename std::iterator_traits<T>::value_type value_t;
+ typedef typename std::iterator_traits<ForwardIter>::value_type value_t;
256
257
assert(std::distance(first, last) >= 0);
258
- size_t const size_ = static_cast<size_t>(std::distance(first, last)) * sizeof(value_t);
+ size_t const size_ =
259
+ static_cast<size_t>(std::distance(first, last)) * sizeof(value_t);
260
int const rc = zmq_msg_init_size(&msg, size_);
261
if (rc != 0)
262
0 commit comments