repair boost 1.46 compile in json/feature_grammar.cpp - closes #1342

This commit is contained in:
Dane Springmeyer 2012-08-15 16:49:13 -07:00
parent 4cf1484b53
commit 5c0e1de35b

View file

@ -25,6 +25,7 @@
#include <mapnik/json/feature_grammar.hpp> #include <mapnik/json/feature_grammar.hpp>
// boost // boost
#include <boost/version.hpp>
#include <boost/spirit/include/support_multi_pass.hpp> #include <boost/spirit/include/support_multi_pass.hpp>
namespace mapnik { namespace json { namespace mapnik { namespace json {
@ -81,8 +82,12 @@ feature_grammar<Iterator,FeatureType>::feature_grammar(mapnik::transcoder const&
>> value >> *(lit(',') >> value) >> value >> *(lit(',') >> value)
>> lit(']') >> lit(']')
; ;
// https://github.com/mapnik/mapnik/issues/1342
#if BOOST_VERSION >= 104700
number %= strict_double number %= strict_double
#else
number = strict_double
#endif
| int_ | int_
| lit("true") [_val = true] | lit("true") [_val = true]
| lit ("false") [_val = false] | lit ("false") [_val = false]