Skip to content

Commit 9e57066

Browse files
committed
Fixing mis-use of typename, where GCC complains.
1 parent 3c6c0aa commit 9e57066

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

boost/network/protocol/http/impl/request.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ namespace boost { namespace network {
2929
/** Specialize the traits for the http_server tag. */
3030
template <>
3131
struct headers_container<http::tags::http_server> :
32-
vector<http::tags::http_server>::apply<typename http::request_header<http::tags::http_server>::type>
32+
vector<http::tags::http_server>::apply<http::request_header<http::tags::http_server>::type>
3333
{};
3434

3535
template <>
3636
struct headers_container<http::tags::http_async_server> :
37-
vector<http::tags::http_async_server>::apply<typename http::request_header<http::tags::http_async_server>::type>
37+
vector<http::tags::http_async_server>::apply<http::request_header<http::tags::http_async_server>::type>
3838
{};
3939

4040
namespace http {

boost/network/protocol/http/impl/response.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace boost { namespace network { namespace http {
5151
} status;
5252

5353
/// The headers to be included in the reply.
54-
typedef vector<tags::http_server>::apply<typename request_header<tags::http_server>::type>::type headers_vector;
54+
typedef vector<tags::http_server>::apply<request_header<tags::http_server>::type>::type headers_vector;
5555
headers_vector headers;
5656

5757
/// The content to be sent in the reply.
@@ -69,7 +69,7 @@ namespace boost { namespace network { namespace http {
6969
std::vector<const_buffer> buffers;
7070
buffers.push_back(to_buffer(status));
7171
for (std::size_t i = 0; i < headers.size(); ++i) {
72-
typename request_header<tags::http_server>::type & h = headers[i];
72+
request_header<tags::http_server>::type & h = headers[i];
7373
buffers.push_back(buffer(h.name));
7474
buffers.push_back(buffer(name_value_separator));
7575
buffers.push_back(buffer(h.value));

0 commit comments

Comments
 (0)