editing "typename I" to "typename T" due to error: expected nested-name-specifier before ‘(’ token

on c++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
This commit is contained in:
Ben 2018-06-10 23:54:20 -07:00
parent 97d2cb2498
commit a604af95d7

View File

@ -230,10 +230,10 @@ class message_t
throw error_t();
}
template<typename I> message_t(I first, I last) : msg()
template<typename T> message_t(T first, T last) : msg()
{
typedef typename std::iterator_traits<I>::difference_type size_type;
typedef typename std::iterator_traits<I>::value_type value_t;
typedef typename std::iterator_traits<T>::difference_type size_type;
typedef typename std::iterator_traits<T>::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<typename I> bool send(I first, I last, int flags_ = 0)
template<typename T> bool send(T first, T last, int flags_ = 0)
{
zmq::message_t msg(first, last);
return send(msg, flags_);