From 5c0e1de35b9dae6b973e4f436f9e98573a520854 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 15 Aug 2012 16:49:13 -0700 Subject: [PATCH] repair boost 1.46 compile in json/feature_grammar.cpp - closes #1342 --- src/json/feature_grammar.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]