diff options
Diffstat (limited to 'boost/geometry/algorithms/detail/has_self_intersections.hpp')
-rw-r--r-- | boost/geometry/algorithms/detail/has_self_intersections.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/boost/geometry/algorithms/detail/has_self_intersections.hpp b/boost/geometry/algorithms/detail/has_self_intersections.hpp index 805ab6754a..0b13eb7bda 100644 --- a/boost/geometry/algorithms/detail/has_self_intersections.hpp +++ b/boost/geometry/algorithms/detail/has_self_intersections.hpp @@ -91,10 +91,8 @@ inline bool has_self_intersections(Geometry const& geometry, #ifdef BOOST_GEOMETRY_DEBUG_HAS_SELF_INTERSECTIONS bool first = true; #endif - for(typename std::deque<turn_info>::const_iterator it = boost::begin(turns); - it != boost::end(turns); ++it) + for (auto const& info : turns) { - turn_info const& info = *it; bool const both_union_turn = info.operations[0].operation == detail::overlay::operation_union && info.operations[1].operation == detail::overlay::operation_union; |