From 464249c8de020aa23b6228e93b8905340300f3b8 Mon Sep 17 00:00:00 2001 From: Glyn Matthews Date: Fri, 13 May 2016 22:16:30 +0200 Subject: [PATCH] Use std::array::const_iterator instead of raw char pointer. --- boost/network/protocol/http/client/connection/async_base.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boost/network/protocol/http/client/connection/async_base.hpp b/boost/network/protocol/http/client/connection/async_base.hpp index 586202412..d92d254be 100644 --- a/boost/network/protocol/http/client/connection/async_base.hpp +++ b/boost/network/protocol/http/client/connection/async_base.hpp @@ -9,11 +9,13 @@ // http://www.boost.org/LICENSE_1_0.txt) #include +#include #include #include #include #include #include +#include namespace boost { namespace network { @@ -29,7 +31,8 @@ struct async_connection_base { typedef typename string::type string_type; typedef basic_request request; typedef basic_response response; - typedef iterator_range char_const_range; + typedef typename std::array::type, 1024>::const_iterator const_iterator; + typedef iterator_range char_const_range; typedef std::function body_callback_function_type; typedef std::function body_generator_function_type;