pass iterator pair by ref,const& ref to match spirit::x3 APIs and be able check for fully consumed input (needed by geojson.input logic)
This commit is contained in:
parent
f4f39993d0
commit
160c1c9471
2 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@
|
|||
namespace mapnik { namespace json {
|
||||
|
||||
template <typename Iterator, typename Boxes>
|
||||
void extract_bounding_boxes(Iterator start, Iterator end, Boxes & boxes);
|
||||
void extract_bounding_boxes(Iterator & start, Iterator const& end, Boxes & boxes);
|
||||
|
||||
}}
|
||||
|
||||
|
|
|
@ -175,7 +175,7 @@ BOOST_SPIRIT_DEFINE (
|
|||
}
|
||||
|
||||
template <typename Iterator, typename Boxes>
|
||||
void extract_bounding_boxes(Iterator start, Iterator end, Boxes & boxes)
|
||||
void extract_bounding_boxes(Iterator& start, Iterator const& end, Boxes & boxes)
|
||||
{
|
||||
using namespace boost::spirit;
|
||||
using space_type = mapnik::json::grammar::space_type;
|
||||
|
@ -198,6 +198,6 @@ void extract_bounding_boxes(Iterator start, Iterator end, Boxes & boxes)
|
|||
|
||||
}
|
||||
using base_iterator_type = char const*;
|
||||
template void extract_bounding_boxes<base_iterator_type, boxes_type>(base_iterator_type, base_iterator_type, boxes_type&);
|
||||
template void extract_bounding_boxes<base_iterator_type, boxes_type_f>(base_iterator_type, base_iterator_type, boxes_type_f&);
|
||||
template void extract_bounding_boxes<base_iterator_type, boxes_type>(base_iterator_type&, base_iterator_type const&, boxes_type&);
|
||||
template void extract_bounding_boxes<base_iterator_type, boxes_type_f>(base_iterator_type&, base_iterator_type const& , boxes_type_f&);
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue