diff --git a/src/json/feature_grammar.cpp b/src/json/feature_grammar.cpp index 59be9386e..8c6386422 100644 --- a/src/json/feature_grammar.cpp +++ b/src/json/feature_grammar.cpp @@ -99,10 +99,13 @@ feature_grammar::feature_grammar(mapnik::transcoder const& ("\\r", '\r') // carrige return ("\\t", '\t') // tab ; - - string_ %= lit('"') >> *(unesc_char | "\\u" >> hex4 | (char_ - lit('"'))) >> lit('"') +#if BOOST_VERSION > 104200 + string_ %= lit('"') >> no_skip[*(unesc_char | "\\u" >> hex4 | (char_ - lit('"')))] >> lit('"') ; - +#else + string_ %= lit('"') >> lexeme[*(unesc_char | "\\u" >> hex4 | (char_ - lit('"')))] >> lit('"') + ; +#endif // geojson types feature_type = lit("\"type\"") @@ -224,4 +227,4 @@ feature_grammar::feature_grammar(mapnik::transcoder const& template struct mapnik::json::feature_grammar; template struct mapnik::json::feature_grammar >,mapnik::Feature>; -}} \ No newline at end of file +}}