Skip to content

Commit 462b008

Browse files
committed
Fixing MSVC errors on unqualified calls to begin() and end().
1 parent cdd6c13 commit 462b008

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

boost/network/protocol/http/policies/simple_connection.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ namespace boost { namespace network { namespace http {
5555
boost::uint16_t status = response_.status();
5656
if (status >= 300 && status <= 307) {
5757
typename headers_range<http::basic_response<Tag> >::type location_range = headers(response_)["Location"];
58-
typename range_iterator<typename headers_range<http::basic_request<Tag> >::type>::type location_header = begin(location_range);
59-
if (location_header != end(location_range)) {
58+
typename range_iterator<typename headers_range<http::basic_request<Tag> >::type>::type location_header = boost::begin(location_range);
59+
if (location_header != boost::end(location_range)) {
6060
request_.uri(location_header->second);
6161
} else throw std::runtime_error("Location header not defined in redirect response.");
6262
} else break;
@@ -81,7 +81,7 @@ namespace boost { namespace network { namespace http {
8181
, follow_redirect_
8282
, request_.host()
8383
, lexical_cast<string_type>(request_.port())
84-
, bind(
84+
, boost::bind(
8585
&simple_connection_policy<Tag,version_major,version_minor>::resolve,
8686
this,
8787
_1, _2, _3

0 commit comments

Comments
 (0)