diff options
Diffstat (limited to 'boost/geometry/algorithms/detail/closest_feature/geometry_to_range.hpp')
-rw-r--r-- | boost/geometry/algorithms/detail/closest_feature/geometry_to_range.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/boost/geometry/algorithms/detail/closest_feature/geometry_to_range.hpp b/boost/geometry/algorithms/detail/closest_feature/geometry_to_range.hpp index c7558b4ff1..04fa9ee86b 100644 --- a/boost/geometry/algorithms/detail/closest_feature/geometry_to_range.hpp +++ b/boost/geometry/algorithms/detail/closest_feature/geometry_to_range.hpp @@ -63,8 +63,7 @@ private: >::apply(geometry, *it_min, strategy); // check if other elements in the range are closer - RangeIterator it = first; - for (++it; it != last; ++it) + for (RangeIterator it = ++first; it != last; ++it) { Distance dist = dispatch::distance < |