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:
artemp 2016-11-28 18:40:03 +01:00
parent f4f39993d0
commit 160c1c9471
2 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@
namespace mapnik { namespace json { namespace mapnik { namespace json {
template <typename Iterator, typename Boxes> 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);
}} }}

View file

@ -175,7 +175,7 @@ BOOST_SPIRIT_DEFINE (
} }
template <typename Iterator, typename Boxes> 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 namespace boost::spirit;
using space_type = mapnik::json::grammar::space_type; 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*; 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>(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, boxes_type_f&); template void extract_bounding_boxes<base_iterator_type, boxes_type_f>(base_iterator_type&, base_iterator_type const& , boxes_type_f&);
}} }}