remove omit
directive as it breaks type deduction and insists on boost::optional<boost::variant<int, mapnik::json::coordinates>
attribute signature (boost 1.61.0)
This commit is contained in:
parent
c85c0fd025
commit
7b3f607a01
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,6 @@ geometry_grammar<Iterator, ErrorHandler>::geometry_grammar()
|
|||
qi::_a_type _a;
|
||||
qi::_b_type _b;
|
||||
qi::eps_type eps;
|
||||
qi::omit_type omit;
|
||||
using qi::fail;
|
||||
using qi::on_error;
|
||||
using phoenix::push_back;
|
||||
|
@ -77,6 +76,7 @@ geometry_grammar<Iterator, ErrorHandler>::geometry_grammar()
|
|||
| lit ("false")
|
||||
| lit("null")
|
||||
;
|
||||
|
||||
geometry = lit('{')[_a = 0]
|
||||
> (((lit("\"type\"") > lit(':') > geometry_type_dispatch[_a = _1])
|
||||
|
|
||||
|
@ -84,7 +84,7 @@ geometry_grammar<Iterator, ErrorHandler>::geometry_grammar()
|
|||
|
|
||||
(lit("\"geometries\"") > lit(':') > lit('[') > geometry_collection[_val = _1] > lit(']'))
|
||||
|
|
||||
omit[json_.key_value]) % lit(',')) [create_geometry(_val,_a,_b)]
|
||||
json_.key_value) % lit(',')) [create_geometry(_val,_a,_b)]
|
||||
> lit('}')
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue