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

Commit44bd36b

Browse files
committed
Manual changes to update style and fix breakages
1 parenta370594 commit44bd36b

File tree

45 files changed

+347
-328
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+347
-328
lines changed

‎.ycm_extra_conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'-Wall',
1818
'-Wextra',
1919
'-Werror',
20-
'-std=c++03',
20+
'-std=c++11',
2121
'-isystem',
2222
'.',
2323
'-isystem',

‎boost/network/detail/directive_base.hpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
88
#define__NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
99

10+
#include<boost/network/message_fwd.hpp>
11+
1012
/** Defines the base type from which all directives inherit
1113
* to allow friend access to message and other types' internals.
1214
*/
@@ -17,12 +19,13 @@ namespace detail {
1719
template<classTag>
1820
structdirective_base {
1921
typedef Tag tag;
20-
// explicit directive_base(basic_message<tag> & message_)
21-
// : _message(message_)
22+
explicitdirective_base(basic_message<tag> & message)
23+
: message_(message) {}
24+
2225
protected:
23-
~directive_base() =default;default;;// can only be extended
26+
~directive_base() =default;// can only be extended
2427

25-
// mutablebasic_message<tag> &_message;
28+
basic_message<tag> &message_;
2629
};
2730

2831
}// namespace detail

‎boost/network/detail/wrapper_base.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ struct wrapper_base {
1717
explicitwrapper_base(Message& message_) : _message(message_) {};
1818

1919
protected:
20-
~wrapper_base() =default;default;;// for extending only
21-
20+
~wrapper_base() =default;// for extending only
2221
Message& _message;
2322
};
2423

@@ -27,8 +26,7 @@ struct wrapper_base_const {
2726
explicitwrapper_base_const(Messageconst& message_) : _message(message_) {}
2827

2928
protected:
30-
~wrapper_base_const() =default;default;;// for extending only
31-
29+
~wrapper_base_const() =default;// for extending only
3230
Messageconst& _message;
3331
};
3432

‎boost/network/message.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include<boost/network/message_fwd.hpp>
1010
#include<boost/network/traits/string.hpp>
11-
#include<boost/utility/enable_if.hpp>boost/network/traits/headers_container.hpp>
11+
#include<boost/utility/enable_if.hpp>
1212
#include<boost/network/detail/directive_base.hpp>
1313
#include<boost/network/detail/wrapper_base.hpp>
1414
#include<boost/network/message/directives.hpp>

‎boost/network/message/directives/detail/string_directive.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
// (See accompanying file LICENSE_1_0.txt or copy at
77
// http://www.boost.org/LICENSE_1_0.txt)
88

9+
#include<boost/mpl/if.hpp>
10+
#include<boost/mpl/or.hpp>
11+
#include<boost/network/support/is_pod.hpp>
912
#include<boost/network/traits/string.hpp>
13+
#include<boost/utility/enable_if.hpp>
14+
#include<boost/variant/apply_visitor.hpp>
15+
#include<boost/variant/static_visitor.hpp>
1016
#include<boost/variant/variant.hpp>
11-
#include<boost/network/support/is_pod.hpp>>
12-
#include<boost/variant/apply_visitor.hpp>#include<boost/variant/static_visitor.hpp>
13-
#include<boost/mpl/if.hpp<boost/mpl/or.hpp>
14-
#include<boost/utility/enable_if.hpp>ble_if.hpp>
1517

1618
/**
1719
*
@@ -32,7 +34,7 @@
3234
#defineBOOST_NETWORK_STRING_DIRECTIVE(name, value, body, pod_body) \
3335
template<classValueType> \
3436
structname##_directive { \
35-
ValueTypeconst&((value)); \
37+
ValueTypeconst&((value)); \
3638
explicit name##_directive(ValueTypeconst& value_) : value(value_) {} \
3739
name##_directive(name##_directiveconst& other) : value(other.value) {} \
3840
template<classTag,template<class>classMessage> \
@@ -51,7 +53,5 @@
5153
inline name##_directive<T>name(Tconst& input) { \
5254
return name##_directive<T>(input); \
5355
}
54-
#endif/* BOOST_NETWORK_STRING_DIRECTIVE*/
55-
56-
#endif/* BOOST_NETWORK_MESSAGE_DIRECTIVES_DETAIL_STRING_DIRECTIVE_HPP_20100915 \
57-
*/
56+
#endif// BOOST_NETWORK_STRING_DIRECTIVE
57+
#endif// BOOST_NETWORK_MESSAGE_DIRECTIVES_DETAIL_STRING_DIRECTIVE_HPP_20100915

‎boost/network/message/directives/header.hpp

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7-
#ifndef__NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
8-
#define__NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
7+
#ifndefBOOST_NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
8+
#defineBOOST_NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
99

10-
#include<boost/network/support/is_async.hpp>pp>
11-
#include<boost/network/traits/string.hpp>nclude<boost/utility/enable_if.hpp>ude<boost/thread/future.hpp>
10+
#include<boost/network/support/is_async.hpp>
11+
#include<boost/network/traits/string.hpp>
12+
#include<boost/utility/enable_if.hpp>
13+
#include<boost/thread/future.hpp>
1214
#include<boost/mpl/if.hpp>
1315
#include<boost/mpl/or.hpp>
14-
#include<boost/variant/apply_visitor.hpp>r.hpp>
15-
#include<boost/variant/static_visitor.hpp>>
16-
#include<boost/variant/variant.hpp>pace boost {
16+
#include<boost/variant/apply_visitor.hpp>
17+
#include<boost/variant/static_visitor.hpp>
18+
#include<boost/variant/variant.hpp>
19+
20+
namespaceboost {
1721
namespacenetwork {
1822

1923
namespaceimpl {
@@ -69,4 +73,4 @@ inline impl::header_directive<T1, T2> header(T1 const& header_name,
6973
}// namespace network
7074
}// namespace boost
7175

72-
#endif//__NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
76+
#endif//BOOST_NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__

‎boost/network/message/directives/remove_header.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#defineNETWORK_MESSAGE_DIRECTIVES_REMOVE_HEADER_HPP
99

1010
#include<boost/network/traits/string.hpp>
11+
#include<string>
1112

1213
namespaceboost {
1314
namespacenetwork {
@@ -34,14 +35,15 @@ struct remove_header_directive {
3435
}// namespace impl
3536

3637
inline impl::remove_header_directive<std::string>remove_header(
37-
std::string/*header_name*/ame*/) {
38+
conststd::string&header_name) {
3839
return impl::remove_header_directive<std::string>(header_name);
3940
}
4041

4142
inline impl::remove_header_directive<std::wstring>remove_header(
42-
std::wstring header_name) {
43+
conststd::wstring& header_name) {
4344
return impl::remove_header_directive<std::wstring>(header_name);
4445
}
46+
4547
}// namespace network
4648
}// namespace boost
4749

‎boost/network/message/message_concept.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
#include<boost/network/message/traits/source.hpp>
1515
#include<boost/network/message/traits/destination.hpp>
1616
#include<boost/network/message/traits/headers.hpp>
17-
#include<boost/network/tags.hp<boost/network/traits/string.hpp>de<boost/thread/future.hpp>oost {
17+
#include<boost/network/tags.hpp>
18+
#include<boost/network/traits/string.hpp>
19+
#include<boost/thread/future.hpp>
20+
21+
namespaceboost {
1822
namespacenetwork {
1923

2024
template<classM>

‎boost/network/message/modifiers/add_header.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
// (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10-
#include<boost/mpl/a<boost/mpl/not<boost/network/support/is_async.hpp>nc.hpp>
11-
#include<boost/network/support/is_pod.hpp>ort/is_pod.hpp>
12-
#include<boost/utility/enable_if.hpp>le_if.hpp>
10+
#include<boost/mpl/and.hpp>
11+
#include<boost/mpl/not.hpp>
12+
#include<boost/network/support/is_async.hpp>
13+
#include<boost/network/support/is_pod.hpp>
14+
#include<boost/utility/enable_if.hpp>
1315

1416
namespaceboost {
1517
namespacenetwork {
@@ -36,7 +38,7 @@ inline typename enable_if<is_pod<Tag>, void>::type add_header(
3638
typename Message::header_type header = {key, value};
3739
message.headers.insert(message.headers.end(), header);
3840
}
39-
}// namespace impl // namespace impl
41+
}// namespace impl
4042

4143
template<classTag,template<class>classMessage,classKeyType,
4244
classValueType>

‎boost/network/message/modifiers/clear_headers.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
// (See accompanying file LICENSE_1_0.txt or copy at
77
// http://www.boost.org/LICENSE_1_0.txt)
88

9-
#include<boost/mpl/a<boost/mpl/not<boost/network/support/is_async.hpp>_async.hpp>
10-
#include<boost/network/support/is_pod.hpp>.hpp>
11-
#include<boost/thread/future.hpp>e.hpp>
12-
#include<boost/utility/enable_if.hpp>le_if.hpp>
9+
#include<boost/mpl/and.hpp>
10+
#include<boost/mpl/not.hpp>
11+
#include<boost/network/support/is_async.hpp>
12+
#include<boost/network/support/is_pod.hpp>
13+
#include<boost/thread/future.hpp>
14+
#include<boost/utility/enable_if.hpp>
1315

1416
namespaceboost {
1517
namespacenetwork {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp