Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1945ea8

Browse files
committed
I added a couple of fixes to ensure compilation on MSVC 10.
1 parent680da33 commit1945ea8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎boost/network/protocol/http/client/connection/sync_base.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ namespace boost { namespace network { namespace http { namespace impl {
130130
}
131131
if (boost::iequals(boost::begin(transfer_encoding_range)->second,"chunked")) {
132132
bool stopping =false;
133-
do {
133+
do {
134134
std::size_t chunk_size_line =read_until(socket_, response_buffer,"\r\n", error);
135135
if ((chunk_size_line ==0) && (error != boost::asio::error::eof))throwboost::system::system_error(error);
136136
std::size_t chunk_size =0;
@@ -163,7 +163,7 @@ namespace boost { namespace network { namespace http { namespace impl {
163163

164164
if (chunk_size !=0)
165165
throwstd::runtime_error("Size mismatch between tranfer encoding chunk data size and declared chunk size.");
166-
}
166+
}
167167
}while (!stopping);
168168
}elsethrowstd::runtime_error("Unsupported Transfer-Encoding.");
169169
}else {
@@ -177,7 +177,7 @@ namespace boost { namespace network { namespace http { namespace impl {
177177
while ((bytes_read =boost::asio::read(socket_, response_buffer,boost::asio::transfer_at_least(1), error))) {
178178
body_stream << &response_buffer;
179179
length -= bytes_read;
180-
if ((length <=0)or error)
180+
if ((length <=0)|| error)
181181
break;
182182
}
183183
}

‎boost/network/protocol/http/policies/pooled_connection.hpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace boost { namespace network { namespace http {
3030
typedeftypename resolver_base::resolver_type resolver_type;
3131
typedef function<typenameresolver_base::resolver_iterator_pair(resolver_type &, string_typeconst &, string_typeconst &)> resolver_function_type;
3232
typedef function<void(iterator_range<charconst *>const &, system::error_codeconst &)> body_callback_function_type;
33-
33+
3434
voidcleanup() {
3535
host_connection_map().swap(host_connections);
3636
}
@@ -85,9 +85,9 @@ namespace boost { namespace network { namespace http {
8585
pimpl->read_headers(response_, response_buffer);
8686

8787
if (
88-
get_body && response_.status() !=304
88+
get_body && response_.status() !=304
8989
&& (response_.status() !=204)
90-
&&not(response_.status() >=100 && response_.status() <=199)
90+
&&!(response_.status() >=100 && response_.status() <=199)
9191
) {
9292
pimpl->read_body(response_, response_buffer);
9393
}
@@ -125,7 +125,7 @@ namespace boost { namespace network { namespace http {
125125
};
126126

127127
typedef shared_ptr<connection_impl> connection_ptr;
128-
128+
129129
typedef unordered_map<string_type, connection_ptr> host_connection_map;
130130
host_connection_map host_connections;
131131
bool follow_redirect_;
@@ -164,7 +164,7 @@ namespace boost { namespace network { namespace http {
164164

165165
pooled_connection_policy(bool cache_resolved,bool follow_redirect)
166166
: resolver_base(cache_resolved), host_connections(), follow_redirect_(follow_redirect) {}
167-
167+
168168
};
169169

170170
}// namespace http

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp