mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-13 10:52:57 +01:00
Merge pull request #250 from esromneb/master
editing "typename I" to "typename T" due to error: expected nested-na…
This commit is contained in:
commit
837c0c9a97
8
zmq.hpp
8
zmq.hpp
@ -230,10 +230,10 @@ class message_t
|
|||||||
throw error_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<T>::difference_type size_type;
|
||||||
typedef typename std::iterator_traits<I>::value_type value_t;
|
typedef typename std::iterator_traits<T>::value_type value_t;
|
||||||
|
|
||||||
size_type const size_ = std::distance(first, last) * sizeof(value_t);
|
size_type const size_ = std::distance(first, last) * sizeof(value_t);
|
||||||
int const rc = zmq_msg_init_size(&msg, size_);
|
int const rc = zmq_msg_init_size(&msg, size_);
|
||||||
@ -685,7 +685,7 @@ class socket_t
|
|||||||
throw error_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);
|
zmq::message_t msg(first, last);
|
||||||
return send(msg, flags_);
|
return send(msg, flags_);
|
||||||
|
Loading…
Reference in New Issue
Block a user