don't skip iter_pos

This commit is contained in:
artemp 2015-10-27 19:13:00 +00:00
parent 6122cdf7a8
commit 4dee3d3b51

View file

@ -56,6 +56,7 @@ extract_bounding_box_grammar<Iterator, ErrorHandler>::extract_bounding_box_gramm
qi::eps_type eps;
qi::raw_type raw;
qi::char_type char_;
qi::no_skip_type no_skip;
boost::spirit::repository::qi::iter_pos_type iter_pos;
using qi::fail;
using qi::on_error;
@ -63,7 +64,7 @@ extract_bounding_box_grammar<Iterator, ErrorHandler>::extract_bounding_box_gramm
start = features(_r1)
;
features = iter_pos[_a = _1] >> -(lit('{')
features = no_skip[iter_pos[_a = _1]] >> -(lit('{')
>> *((json.key_value - lit("\"features\"")) >> lit(','))
>> lit("\"features\"")
>> lit(':'))