summaryrefslogtreecommitdiff
path: root/boost/geometry/algorithms/detail/recalculate.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/algorithms/detail/recalculate.hpp')
-rw-r--r--boost/geometry/algorithms/detail/recalculate.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/boost/geometry/algorithms/detail/recalculate.hpp b/boost/geometry/algorithms/detail/recalculate.hpp
index 688d49237d..eb633c9c2f 100644
--- a/boost/geometry/algorithms/detail/recalculate.hpp
+++ b/boost/geometry/algorithms/detail/recalculate.hpp
@@ -106,13 +106,10 @@ struct range_to_range
typedef recalculate_point<geometry::dimension<point_type>::value> per_point;
geometry::clear(destination);
- for (typename boost::range_iterator<Range2 const>::type it
- = boost::begin(source);
- it != boost::end(source);
- ++it)
+ for (auto const& source_point : source)
{
point_type p;
- per_point::apply(p, *it, strategy);
+ per_point::apply(p, source_point, strategy);
geometry::append(destination, p);
}
}