@@ -40,7 +40,7 @@ namespace impl {
4040template <class Tag ,unsigned version_major,unsigned version_minor>
4141struct async_connection_base ;
4242
43- namespace placeholders = asio::placeholders;
43+ namespace placeholders = :: asio::placeholders;
4444
4545template <class Tag ,unsigned version_major,unsigned version_minor>
4646struct http_async_connection
@@ -145,7 +145,7 @@ struct http_async_connection
145145// Here we deal with the case that there was an error encountered and
146146// that there's still more endpoints to try connecting to.
147147 resolver_iterator iter =boost::begin (endpoint_range);
148- asio::ip::tcp::endpointendpoint (iter->endpoint ().address (), port);
148+ :: asio::ip::tcp::endpointendpoint (iter->endpoint ().address (), port);
149149auto self =this ->shared_from_this ();
150150 delegate_->connect (
151151 endpoint, host, source_port,
@@ -155,7 +155,7 @@ struct http_async_connection
155155 generator,std::make_pair (++iter_copy,resolver_iterator ()), ec);
156156 }));
157157 }else {
158- set_errors (ec ? ec : asio::error::host_not_found);
158+ set_errors (ec ? ec ::: asio::error::host_not_found);
159159 boost::iterator_range<const char *> range;
160160if (callback)callback (range, ec);
161161 }
@@ -168,7 +168,7 @@ struct http_async_connection
168168 resolver_iterator_pair endpoint_range,
169169 std::error_codeconst & ec) {
170170if (is_timedout_) {
171- set_errors (asio::error::timed_out);
171+ set_errors (:: asio::error::timed_out);
172172 }else if (!ec) {
173173BOOST_ASSERT (delegate_.get () !=0 );
174174auto self =this ->shared_from_this ();
@@ -182,7 +182,7 @@ struct http_async_connection
182182 }else {
183183if (!boost::empty (endpoint_range)) {
184184 resolver_iterator iter =boost::begin (endpoint_range);
185- asio::ip::tcp::endpointendpoint (iter->endpoint ().address (), port);
185+ :: asio::ip::tcp::endpointendpoint (iter->endpoint ().address (), port);
186186auto self =this ->shared_from_this ();
187187 delegate_->connect (
188188 endpoint, host, source_port,
@@ -193,7 +193,7 @@ struct http_async_connection
193193 ec);
194194 }));
195195 }else {
196- set_errors (ec ? ec : asio::error::host_not_found);
196+ set_errors (ec ? ec ::: asio::error::host_not_found);
197197 boost::iterator_range<const char *> range;
198198if (callback)callback (range, ec);
199199 }
@@ -231,15 +231,15 @@ struct http_async_connection
231231
232232auto self =this ->shared_from_this ();
233233 delegate_->read_some (
234- asio::mutable_buffers_1 (this ->part .data (),
234+ :: asio::mutable_buffers_1 (this ->part.data(),
235235 this->part.size()),
236236 request_strand_.wrap([=] (std::error_codeconst &ec,
237237 std::size_t bytes_transferred) {
238238 self->handle_received_data (version, get_body, callback,
239239 ec, bytes_transferred);
240240 }));
241241 }else {
242- set_errors (is_timedout_ ? asio::error::timed_out : ec);
242+ set_errors (is_timedout_ ?:: asio::error::timed_out : ec);
243243 }
244244 }
245245
@@ -250,19 +250,19 @@ struct http_async_connection
250250static const long short_read_error =335544539 ;
251251bool is_ssl_short_read_error =
252252#ifdef BOOST_NETWORK_ENABLE_HTTPS
253- ec.category () == asio::error::ssl_category &&
253+ ec.category () ==:: asio::error::ssl_category &&
254254 ec.value () == short_read_error;
255255#else
256256false && short_read_error;
257257#endif
258258if (!is_timedout_ &&
259- (!ec || ec == asio::error::eof || is_ssl_short_read_error)) {
259+ (!ec || ec ==:: asio::error::eof || is_ssl_short_read_error)) {
260260 logic::tribool parsed_ok;
261261size_t remainder;
262262auto self =this ->shared_from_this ();
263263switch (state) {
264264case version:
265- if (ec == asio::error::eof)return ;
265+ if (ec ==:: asio::error::eof)return ;
266266 parsed_ok =this ->parse_version (
267267 delegate_,
268268 request_strand_.wrap ([=] (std::error_codeconst &ec,
@@ -275,7 +275,7 @@ struct http_async_connection
275275return ;
276276 }
277277case status:
278- if (ec == asio::error::eof)return ;
278+ if (ec ==:: asio::error::eof)return ;
279279 parsed_ok =this ->parse_status (
280280 delegate_,
281281 request_strand_.wrap ([=] (std::error_codeconst &ec,
@@ -288,7 +288,7 @@ struct http_async_connection
288288return ;
289289 }
290290case status_message:
291- if (ec == asio::error::eof)return ;
291+ if (ec ==:: asio::error::eof)return ;
292292 parsed_ok =this ->parse_status_message (
293293 delegate_, request_strand_.wrap ([=] (std::error_codeconst &,
294294 std::size_t bytes_transferred) {
@@ -300,7 +300,7 @@ struct http_async_connection
300300return ;
301301 }
302302case headers:
303- if (ec == asio::error::eof)return ;
303+ if (ec ==:: asio::error::eof)return ;
304304// In the following, remainder is the number of bytes that remain in
305305// the buffer. We need this in the body processing to make sure that
306306// the data remaining in the buffer is dealt with before another call
@@ -352,7 +352,7 @@ struct http_async_connection
352352
353353auto self =this ->shared_from_this ();
354354 delegate_->read_some (
355- asio::mutable_buffers_1 (this ->part .data (),
355+ :: asio::mutable_buffers_1 (this ->part.data(),
356356 this->part.size()),
357357 request_strand_.wrap([=] (std::error_codeconst &ec,
358358 std::size_t bytes_transferred) {
@@ -374,7 +374,7 @@ struct http_async_connection
374374 }
375375return ;
376376case body:
377- if (ec == asio::error::eof || is_ssl_short_read_error) {
377+ if (ec ==:: asio::error::eof || is_ssl_short_read_error) {
378378// Here we're handling the case when the connection has been closed
379379// from the server side, or at least that the end of file has been
380380// reached while reading the socket. This signals the end of the
@@ -420,7 +420,7 @@ struct http_async_connection
420420callback (make_iterator_range (begin, end), ec);
421421auto self =this ->shared_from_this ();
422422 delegate_->read_some (
423- asio::mutable_buffers_1 (this ->part .data (),
423+ :: asio::mutable_buffers_1 (this ->part.data(),
424424 this->part.size()),
425425 request_strand_.wrap([=] (std::error_codeconst &ec,
426426 std::size_t bytes_transferred) {
@@ -446,7 +446,7 @@ struct http_async_connection
446446BOOST_ASSERT (false &&" Bug, report this to the developers!" );
447447 }
448448 }else {
449- std::system_errorerror (is_timedout_ ? asio::error::timed_out
449+ std::system_errorerror (is_timedout_ ?:: asio::error::timed_out
450450 : ec);
451451this ->source_promise .set_exception (std::make_exception_ptr (error));
452452this ->destination_promise .set_exception (std::make_exception_ptr (error));
@@ -506,14 +506,14 @@ struct http_async_connection
506506 }
507507
508508int timeout_;
509- asio::deadline_timer timer_;
509+ :: asio::deadline_timer timer_;
510510bool is_timedout_;
511511bool follow_redirect_;
512512 resolver_type& resolver_;
513513 resolve_function resolve_;
514- asio::io_service::strand request_strand_;
514+ :: asio::io_service::strand request_strand_;
515515 connection_delegate_ptr delegate_;
516- asio::streambuf command_streambuf;
516+ :: asio::streambuf command_streambuf;
517517 string_type method;
518518};
519519