File tree 1 file changed +13
-13
lines changed
message/src/network/message/directives/detail
1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 27
27
//
28
28
29
29
#ifndef NETWORK_STRING_DIRECTIVE
30
- #define NETWORK_STRING_DIRECTIVE (name ) \
31
- struct name ##_directive { \
32
- std::string const & value; \
33
- explicit name##_directive(std::string const & value_) : value(value_) {} \
34
- name##_directive(name##_directive const & other) : value(other.value) {} \
35
- template <class Message > void operator ()(Message& message) const { \
36
- message.set_ ##name (value); \
37
- } \
38
- } \
39
- ;
40
-
41
- inline name##_directive const name (std::string const & input) {
42
- return name##_directive (input);
30
+ #define NETWORK_STRING_DIRECTIVE (name )\
31
+ struct name ##_directive {\
32
+ std::string const & value;\
33
+ explicit name##_directive(std::string const & value_) : value(value_) {}\
34
+ name##_directive(name##_directive const & other) : value(other.value) {}\
35
+ template <class Message > void operator ()(Message& message) const {\
36
+ message.set_ ##name (value);\
37
+ }\
38
+ }\
39
+ ;\
40
+ inline name##_directive const name (std::string const & input) {\
41
+ return name##_directive (input);\
43
42
}
43
+
44
44
#endif /* NETWORK_STRING_DIRECTIVE */
45
45
46
46
#endif /* NETWORK_MESSAGE_DIRECTIVES_DETAIL_STRING_DIRECTIVE_HPP_20100915 */
You can’t perform that action at this time.
0 commit comments