Skip to content

Commit 8c542d2

Browse files
author
glynos
committed
Updated unit tests to compile on Linux using GCC and Intel compilers
1 parent 38a16c8 commit 8c542d2

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

boost/network/message/wrappers/body.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace boost { namespace network {
2020
{ };
2121

2222
operator std::string () const {
23-
return std::string(_message.body());
23+
return std::string(detail::wrapper_base<Tag>::_message.body());
2424
};
2525
};
2626
}; // namespace impl

boost/network/message/wrappers/headers.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ namespace boost { namespace network {
3232
{ };
3333

3434
range_type operator[] (std::string const & key) const {
35-
return _message.headers().equal_range(key);
35+
return headers_wrapper<Tag>::_message.headers().equal_range(key);
3636
};
3737

3838
typename message_type::headers_container_type::size_type count(std::string const & key) const {
39-
return _message.headers().count(key);
39+
return headers_wrapper<Tag>::_message.headers().count(key);
4040
};
4141

4242
};

libs/network/test/message_test.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@
99
#include <boost/network.hpp>
1010
#include <algorithm>
1111

12-
BOOST_AUTO_TEST_CASE(constructor_test) {
1312

14-
struct tags {
15-
struct special { };
16-
};
13+
namespace unit_test {
14+
struct tags {
15+
struct special { };
16+
};
17+
}
18+
19+
BOOST_AUTO_TEST_CASE(constructor_test) {
1720

1821
using namespace boost::network;
1922
message msg;
2023

21-
basic_message<tags::special> special_message;
24+
basic_message<unit_test::tags::special> special_message;
2225
}
2326

2427
BOOST_AUTO_TEST_CASE(header_directives_test) {

0 commit comments

Comments
 (0)