Skip to content

Commit 39757ee

Browse files
author
glynos
committed
Added typename keyword in order to make the code compile on
1 parent db3d633 commit 39757ee

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

boost/network/protocol/http.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
#include <boost/network/protocol/http/response.hpp>
1616
#include <boost/network/protocol/http/client.hpp>
1717

18-
#endif // __NETWORK_PROTOCOL_HTTP_20070908-1_HPP__
18+
#endif // __NETWORK_PROTOCOL_HTTP_20070908-1_HPP__

boost/network/protocol/http/client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace boost { namespace network { namespace http {
6363
<<
6464
header( line.substr(0, line.find(':')) ,
6565
line.find(' ') == tag::str_type::npos ?
66-
tag::str_type()
66+
typename tag::str_type()
6767
: line.substr(line.find(' ') + 1));
6868
};
6969

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,23 +107,23 @@ namespace boost { namespace network { namespace http {
107107
{ };
108108

109109
typename tag::str_type const host() const {
110-
return fusion::at_key<tags::host>(uri_parts);
110+
return fusion::at_key<typename tags::host>(uri_parts);
111111
};
112112

113113
unsigned int port() const {
114-
return fusion::at_key<tags::port>(uri_parts);
114+
return fusion::at_key<typename tags::port>(uri_parts);
115115
};
116116

117117
typename tag::str_type const path() const {
118-
return fusion::at_key<tags::path>(uri_parts);
118+
return fusion::at_key<typename tags::path>(uri_parts);
119119
};
120120

121121
typename tag::str_type const query() const {
122-
return fusion::at_key<tags::query>(uri_parts);
122+
return fusion::at_key<typename tags::query>(uri_parts);
123123
};
124124

125125
typename tag::str_type const anchor() const {
126-
return fusion::at_key<tags::anchor>(uri_parts);
126+
return fusion::at_key<typename tags::anchor>(uri_parts);
127127
};
128128
};
129129

@@ -133,4 +133,4 @@ namespace boost { namespace network { namespace http {
133133

134134
}; // namespace boost
135135

136-
#endif // __NETWORK_PROTOCOL_HTTP_REQUEST_IMPL_20070908_1_HPP__
136+
#endif // __NETWORK_PROTOCOL_HTTP_REQUEST_IMPL_20070908_1_HPP__

0 commit comments

Comments
 (0)