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

Commitb7dc852

Browse files
committed
Concept-Checking Related Fixes
So upon building in debug mode, I've discovered that some new conceptsand checks are failing. These have now been fixed and addressedappropriately.
1 parentf1deeda commitb7dc852

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

‎boost/network/protocol/http/algorithms/linearize.hpp‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@
1414

1515
namespaceboost {namespacenetwork {namespacehttp {
1616

17-
template<classTag,classValueType>
17+
template<classTag>
1818
structlinearize {
1919
typedeftypename string<Tag>::type string_type;
2020

2121
template<classArguments>
22-
structresult {
22+
structresult;
23+
24+
template<classThis,classArg>
25+
structresult<This(Arg)> {
2326
typedef string_type type;
2427
};
2528

29+
template<classValueType>
2630
BOOST_CONCEPT_REQUIRES(
27-
(Header<ValueType),
31+
((Header<ValueType>)),
2832
(string_type)
2933
)operator()(ValueType & header) {
3034
typedeftypename ostringstream<Tag>::type output_stream;

‎boost/network/protocol/http/header.hpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace boost { namespace network { namespace http {
2323
template<classTag>
2424
structrequest_header
2525
{
26+
typedef Tag tag;
2627
typedeftypename string<Tag>::type string_type;
2728
string_type name, value;
2829
};

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,10 @@ namespace boost { namespace network { namespace http {
161161
std::ostreamstream(&headers_buffer);
162162
if (!boost::empty(headers)) {
163163
typedeftypename Range::const_iterator iterator;
164-
typedeftypename Range::value_type value_type;
165164
typedeftypename string<Tag>::type string_type;
166165
boost::transform(headers,
167166
std::ostream_iterator<string_type>(stream),
168-
linearize<Tag, value_type>());
167+
linearize<Tag>());
169168
}else {
170169
stream <<consts::crlf();
171170
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace boost { namespace network { namespace http {
1616

1717
template<classTag>
1818
structresponse_header {
19+
typedef Tag tag;
1920
typedeftypename string<Tag>::type string_type;
2021
string_type name, value;
2122
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp