Skip to content

Commit 32f2033

Browse files
Yegor Shvedbarendgehrels
authored andcommitted
Update to range::back(ring) for issue 1450
Chaned ring.back() to *(boost::end(ring) - 1) and then to range::back(ring)
1 parent 5f964c9 commit 32f2033

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/geometry/algorithms/detail/overlay/graph/traverse_graph.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ struct traverse_graph
225225
{
226226
// Select the best target edge, using the last point of the ring and the turn point
227227
// for side calculations (if any).
228-
toi = m_edge_selector.select_target_edge(tois, *(boost::end(ring) - 1), turn_point);
228+
toi = m_edge_selector.select_target_edge(tois, range::back(ring), turn_point);
229229
}
230230

231231
if (m_visited_tois.count(toi) > 0 || m_finished_tois.count(toi) > 0)

0 commit comments

Comments
 (0)