From a604af95d7047d2a3c7d13345d782feeb01d8696 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 10 Jun 2018 23:54:20 -0700 Subject: [PATCH] =?UTF-8?q?editing=20"typename=20I"=20to=20"typename=20T"?= =?UTF-8?q?=20due=20to=20error:=20expected=20nested-name-specifier=20befor?= =?UTF-8?q?e=20=E2=80=98(=E2=80=99=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit on c++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 --- zmq.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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_);