Skip to content

Commit 8c4a9da

Browse files
committed
Merge pull request cpp-netlib#400 from Virtual-X/0.11-devel
Closes cpp-netlib#399: Fix compiler error on VS2010.
2 parents c15e98f + f693104 commit 8c4a9da

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

boost/network/protocol/http/traits/impl/headers_container.ipp

+15-12
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,23 @@
1717

1818
namespace boost { namespace network { namespace impl {
1919

20+
// Moving implementation from original
21+
// message_traits implementation by
22+
// Atomic Labs, Inc.
23+
// --
24+
// returns true if str1 < str2 (ignoring case)
25+
struct is_less_ignore_case_impl {
26+
inline bool operator() (
27+
string<http::tags::http_default_8bit_tcp_resolve>::type const & str1,
28+
string<http::tags::http_default_8bit_tcp_resolve>::type const & str2) const {
29+
return to_lower_copy(str1) < to_lower_copy(str2);
30+
};
31+
};
32+
2033
template <class Tag>
2134
struct headers_container_impl<Tag, typename enable_if<typename Tag::is_client>::type> {
22-
// Moving implementation from original
23-
// message_traits implementation by
24-
// Atomic Labs, Inc.
25-
// --
26-
// returns true if str1 < str2 (ignoring case)
27-
struct is_less_ignore_case {
28-
inline bool operator() (
29-
string<http::tags::http_default_8bit_tcp_resolve>::type const & str1,
30-
string<http::tags::http_default_8bit_tcp_resolve>::type const & str2) const {
31-
return to_lower_copy(str1) < to_lower_copy(str2);
32-
};
33-
};
35+
36+
typedef is_less_ignore_case_impl is_less_ignore_case;
3437

3538
typedef std::multimap<
3639
string<http::tags::http_default_8bit_tcp_resolve>::type,

0 commit comments

Comments
 (0)