Skip to content

Commit ddb372d

Browse files
umennelUche Mennel
authored andcommitted
Fix compilation errors with VS2015
1 parent 092cd57 commit ddb372d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

boost/network/protocol/http/client/connection/async_normal.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <boost/network/traits/ostream_iterator.hpp>
3131
#include <boost/network/version.hpp>
3232
#include <boost/range/algorithm/transform.hpp>
33+
#include <boost/range/iterator_range.hpp>
3334
#include <boost/throw_exception.hpp>
3435

3536
namespace boost {
@@ -477,8 +478,10 @@ struct http_async_connection
477478
if (this->is_chunk_encoding && remove_chunk_markers_) {
478479
for (size_t i = 0; i < this->partial_parsed.size(); i += 1024) {
479480
auto range = parse_chunk_encoding(boost::make_iterator_range(
480-
this->partial_parsed.data() + i,
481-
this->partial_parsed.data() +
481+
static_cast<typename std::array<typename char_<Tag>::type, 1024>::const_iterator>(
482+
this->partial_parsed.data()) + i,
483+
static_cast<typename std::array<typename char_<Tag>::type, 1024>::const_iterator>(
484+
this->partial_parsed.data()) +
482485
std::min(i + 1024, this->partial_parsed.size())));
483486
body_string.append(boost::begin(range), boost::end(range));
484487
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy