Skip to content

Commit 1848435

Browse files
committed
Directives: remove parens to silence gcc8 warning
1 parent 610c8cb commit 1848435

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
#define BOOST_NETWORK_STRING_DIRECTIVE(name, value, body, pod_body) \
3535
template <class ValueType> \
3636
struct name##_directive { \
37-
ValueType const&((value)); \
38-
explicit name##_directive(ValueType const& value_) : value(value_) {} \
39-
name##_directive(name##_directive const& other) : value(other.value) {} \
37+
ValueType const& value##_; \
38+
explicit name##_directive(ValueType const& v) : value##_(v) {} \
39+
name##_directive(name##_directive const& other) : value##_(other.value##_) {} \
4040
template <class Tag, template <class> class Message> \
4141
typename enable_if<is_pod<Tag>, void>::type operator()( \
4242
Message<Tag>& message) const { \

0 commit comments

Comments
 (0)