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

Commit89f73f6

Browse files
committed
Fix GCC Compilation Issues
Suddenly, GCC's pedanticism kicks in where more compliant (yet lenient)compilers like clang and MSVC happily deal with this scope issue thatshould "just work".
1 parent3f106d1 commit89f73f6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

‎boost/network/protocol/http/server/async_server.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ namespace boost { namespace network { namespace http {
1616
structasync_server_base {
1717
typedef basic_request<Tag> request;
1818
typedef basic_response<Tag> response;
19-
typedef response_header<Tag> response_header;
2019
typedeftypename string<Tag>::type string_type;
20+
typedef boost::network::http::response_header<Tag> response_header;
2121
typedef async_connection<Tag,Handler> connection;
2222
typedef shared_ptr<connection> connection_ptr;
2323

‎boost/network/protocol/http/server/sync_connection.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ namespace boost { namespace network { namespace http {
8787
if (request_.method[0] =='P') {
8888
// look for the content-length header
8989
typename std::vector<request_header<Tag> >::iterator it =
90-
find_if(
90+
std::find_if(
9191
request_.headers.begin(),
9292
request_.headers.end(),
9393
is_content_length()

‎boost/network/protocol/http/server/sync_server.hpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include<boost/network/protocol/http/response.hpp>
1515
#include<boost/network/protocol/http/request.hpp>
1616
#include<boost/network/protocol/http/server/sync_connection.hpp>
17+
#include<boost/network/protocol/http/server/header.hpp>
1718
#include<boost/network/traits/string.hpp>
1819

1920
namespaceboost {namespacenetwork {namespacehttp {
@@ -23,6 +24,7 @@ namespace boost { namespace network { namespace http {
2324
typedeftypename string<Tag>::type string_type;
2425
typedef basic_request<Tag> request;
2526
typedef basic_response<Tag> response;
27+
typedef boost::network::http::response_header<Tag> response_header;
2628

2729
sync_server_base(string_typeconst & address,
2830
string_typeconst & port,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp