Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8c542d2

Browse files
author
glynos
committed
Updated unit tests to compile on Linux using GCC and Intel compilers
1 parent38a16c8 commit8c542d2

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
operatorstd::string ()const {
23-
returnstd::string(_message.body());
23+
returnstd::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_typeoperator[] (std::stringconst & key)const {
35-
return _message.headers().equal_range(key);
35+
returnheaders_wrapper<Tag>::_message.headers().equal_range(key);
3636
};
3737

3838
typename message_type::headers_container_type::size_typecount(std::stringconst & key)const {
39-
return _message.headers().count(key);
39+
returnheaders_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-
structtags {
15-
structspecial { };
16-
};
13+
namespaceunit_test {
14+
structtags {
15+
structspecial { };
16+
};
17+
}
18+
19+
BOOST_AUTO_TEST_CASE(constructor_test) {
1720

1821
usingnamespaceboost::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)

[8]ページ先頭

©2009-2025 Movatter.jp