Skip to content

Commit

Permalink
editing "typename I" to "typename T" due to error: expected nested-na…
Browse files Browse the repository at this point in the history
…me-specifier before ‘(’ token

on c++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
  • Loading branch information
esromneb committed Jun 11, 2018
1 parent 97d2cb2 commit a604af9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down Expand Up @@ -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_);
Expand Down

0 comments on commit a604af9

Please sign in to comment.