7
7
#define BOOST_TEST_MODULE HTTP message test
8
8
#include < boost/config/warning_disable.hpp>
9
9
#include < boost/test/unit_test.hpp>
10
- #include < boost/network/protocol/http/request.hpp>
11
10
#include < boost/network/protocol/http/response.hpp>
11
+ #include < boost/network/protocol/http/request.hpp>
12
12
#include < boost/mpl/list.hpp>
13
- // #include <boost/network/protocol/http/traits.hpp>
14
13
#include < algorithm>
15
14
16
15
using namespace boost ::network;
@@ -29,7 +28,7 @@ BOOST_FIXTURE_TEST_SUITE(http_message_test_suite, fixtures)
29
28
30
29
BOOST_AUTO_TEST_CASE_TEMPLATE (request_constructor_test, T, tag_types) {
31
30
http::basic_request<T> request (" http://boost.org" );
32
- typedef http::basic_request<T>::string_type string_type;
31
+ typedef typename http::basic_request<T>::string_type string_type;
33
32
string_type host = http::host (request);
34
33
boost::uint16_t port = http::port (request);
35
34
string_type path = http::path (request);
@@ -50,7 +49,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE (request_copy_constructor_test, T, tag_types) {
50
49
<< body (" Hello, World!" )
51
50
;
52
51
http::basic_request<T> copy (request);
53
- typedef http::basic_request<T>::string_type string_type;
52
+ typedef typename http::basic_request<T>::string_type string_type;
54
53
string_type orig_host = http::host (request),
55
54
copy_host = http::host (copy);
56
55
boost::uint16_t orig_port = http::port (request),
@@ -70,7 +69,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE (request_assignment_test, T, tag_types) {
70
69
;
71
70
http::basic_request<T> copy;
72
71
copy = request;
73
- typedef http::basic_request<T>::string_type string_type;
72
+ typedef typename http::basic_request<T>::string_type string_type;
74
73
string_type orig_host = http::host (request),
75
74
copy_host = http::host (copy);
76
75
boost::uint16_t orig_port = http::port (request),
@@ -87,7 +86,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE (request_swap_test, T, tag_types) {
87
86
boost::network::http::basic_request<T> request (" http://boost.org/" );
88
87
boost::network::http::basic_request<T> other;
89
88
swap (other, request); // ADL
90
- typedef http::basic_request<T>::string_type string_type;
89
+ typedef typename http::basic_request<T>::string_type string_type;
91
90
string_type orig_host = http::host (request),
92
91
orig_path = http::path (request),
93
92
copy_host = http::host (other),
@@ -146,7 +145,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE (response_assignment_construct_test, T, tag_types)
146
145
<< body (" The quick brown fox jumps over the lazy dog" );
147
146
http::basic_response<T> copy;
148
147
copy = response;
149
- typedef http::basic_response<T>::string_type string_type;
148
+ typedef typename http::basic_response<T>::string_type string_type;
150
149
string_type version_orig = version (response)
151
150
, version_copy = version (copy);
152
151
BOOST_CHECK_EQUAL ( version_orig, version_copy );
0 commit comments