add parentheses to supress gcc warning [-Wparentheses]

This commit is contained in:
artemp 2017-01-12 10:55:33 +01:00
parent de2b44712a
commit 7db3beda01

View file

@ -41,7 +41,7 @@ x3::rule<class str_expression, std::string> const str_expression("string");
auto const attr_expression_def = +(char_ - ']');
auto const str_expression_def = lexeme[+(char_ -'[')];
auto const path_expression_def = *(str_expression[create_string] | '[' > attr_expression[create_attribute] > ']');
auto const path_expression_def = *(str_expression[create_string] | ('[' > attr_expression[create_attribute] > ']'));
BOOST_SPIRIT_DEFINE(
path_expression,