File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
boost/network/protocol/http Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
namespace boost { namespace network { namespace http {
16
16
17
- template <class Tag , class ValueType >
17
+ template <class Tag >
18
18
struct linearize {
19
19
typedef typename string<Tag>::type string_type;
20
20
21
21
template <class Arguments >
22
- struct result {
22
+ struct result ;
23
+
24
+ template <class This , class Arg >
25
+ struct result <This(Arg)> {
23
26
typedef string_type type;
24
27
};
25
28
29
+ template <class ValueType >
26
30
BOOST_CONCEPT_REQUIRES (
27
- (Header<ValueType),
31
+ (( Header<ValueType>) ),
28
32
(string_type)
29
33
) operator ()(ValueType & header) {
30
34
typedef typename ostringstream<Tag>::type output_stream;
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ namespace boost { namespace network { namespace http {
23
23
template <class Tag >
24
24
struct request_header
25
25
{
26
+ typedef Tag tag;
26
27
typedef typename string<Tag>::type string_type;
27
28
string_type name, value;
28
29
};
Original file line number Diff line number Diff line change @@ -161,11 +161,10 @@ namespace boost { namespace network { namespace http {
161
161
std::ostream stream (&headers_buffer);
162
162
if (!boost::empty (headers)) {
163
163
typedef typename Range::const_iterator iterator;
164
- typedef typename Range::value_type value_type;
165
164
typedef typename string<Tag>::type string_type;
166
165
boost::transform (headers,
167
166
std::ostream_iterator<string_type>(stream),
168
- linearize<Tag, value_type >());
167
+ linearize<Tag>());
169
168
} else {
170
169
stream << consts::crlf ();
171
170
}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ namespace boost { namespace network { namespace http {
16
16
17
17
template <class Tag >
18
18
struct response_header {
19
+ typedef Tag tag;
19
20
typedef typename string<Tag>::type string_type;
20
21
string_type name, value;
21
22
};
You can’t perform that action at this time.
0 commit comments