Skip to content

Commit 04c0afd

Browse files
committed
Fix compilation errors with VS2015
1 parent 092cd57 commit 04c0afd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,10 @@ struct http_async_connection
477477
if (this->is_chunk_encoding && remove_chunk_markers_) {
478478
for (size_t i = 0; i < this->partial_parsed.size(); i += 1024) {
479479
auto range = parse_chunk_encoding(boost::make_iterator_range(
480-
this->partial_parsed.data() + i,
481-
this->partial_parsed.data() +
480+
static_cast<typename std::array<typename char_<Tag>::type, 1024>::const_iterator>(
481+
this->partial_parsed.data()) + i,
482+
static_cast<typename std::array<typename char_<Tag>::type, 1024>::const_iterator>(
483+
this->partial_parsed.data()) +
482484
std::min(i + 1024, this->partial_parsed.size())));
483485
body_string.append(boost::begin(range), boost::end(range));
484486
}

0 commit comments

Comments
 (0)