diff --git a/zmq.hpp b/zmq.hpp index 7c8f7e9..e0d5671 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -230,10 +230,10 @@ class message_t throw error_t(); } - template message_t(I first, I last) : msg() + template message_t(T first, T last) : msg() { - typedef typename std::iterator_traits::difference_type size_type; - typedef typename std::iterator_traits::value_type value_t; + typedef typename std::iterator_traits::difference_type size_type; + typedef typename std::iterator_traits::value_type value_t; size_type const size_ = std::distance(first, last) * sizeof(value_t); int const rc = zmq_msg_init_size(&msg, size_); @@ -685,7 +685,7 @@ class socket_t throw error_t(); } - template bool send(I first, I last, int flags_ = 0) + template bool send(T first, T last, int flags_ = 0) { zmq::message_t msg(first, last); return send(msg, flags_);