diff --git a/include/mapnik/expression_grammar_impl.hpp b/include/mapnik/expression_grammar_impl.hpp index 5ca2c5eeb..2255d4856 100644 --- a/include/mapnik/expression_grammar_impl.hpp +++ b/include/mapnik/expression_grammar_impl.hpp @@ -145,7 +145,7 @@ expression_grammar::expression_grammar(mapnik::transcoder const& tr) multiplicative_expr = unary_expr [_val = _1] >> *( '*' >> unary_expr [_val *= _1] | '/' >> unary_expr [_val /= _1] - | '%' >> unary_expr [_val %= _1] + | '%' >> unary_expr [_val %= construct(_1)] //needed by clang++ with -std=c++11 | regex_match_expr[_val = regex_match_(_val, _1)] | regex_replace_expr(_val) [_val = _1] )