diff --git a/src/json/feature_grammar.cpp b/src/json/feature_grammar.cpp index 1eb98c915..53c35ea0a 100644 --- a/src/json/feature_grammar.cpp +++ b/src/json/feature_grammar.cpp @@ -25,6 +25,7 @@ #include // boost +#include #include namespace mapnik { namespace json { @@ -81,8 +82,12 @@ feature_grammar::feature_grammar(mapnik::transcoder const& >> value >> *(lit(',') >> value) >> lit(']') ; - +// https://github.com/mapnik/mapnik/issues/1342 +#if BOOST_VERSION >= 104700 number %= strict_double +#else + number = strict_double +#endif | int_ | lit("true") [_val = true] | lit ("false") [_val = false]