mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 10:33:52 +01:00
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:
parent
97d2cb2498
commit
a604af95d7
8
zmq.hpp
8
zmq.hpp
@ -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_);
|
||||
|
Loading…
Reference in New Issue
Block a user