diff options
Diffstat (limited to 'boost/geometry/algorithms/detail/overlay/clip_linestring.hpp')
-rw-r--r-- | boost/geometry/algorithms/detail/overlay/clip_linestring.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/boost/geometry/algorithms/detail/overlay/clip_linestring.hpp b/boost/geometry/algorithms/detail/overlay/clip_linestring.hpp index f99140dcd0..2eb70aa7d8 100644 --- a/boost/geometry/algorithms/detail/overlay/clip_linestring.hpp +++ b/boost/geometry/algorithms/detail/overlay/clip_linestring.hpp @@ -197,9 +197,8 @@ OutputIterator clip_range_with_box(Box const& b, Range const& range, OutputLinestring line_out; - typedef typename boost::range_iterator<Range const>::type iterator_type; - iterator_type vertex = boost::begin(range); - for(iterator_type previous = vertex++; + auto vertex = boost::begin(range); + for (auto previous = vertex++; vertex != boost::end(range); ++previous, ++vertex) { |