Skip to content

Commit bce027f

Browse files
committed
[fix] rename indices for issue 1169
1 parent 0237a9d commit bce027f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/boost/geometry/algorithms/detail/overlay/colocate_clusters.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ inline void colocate_clusters(Clusters const& clusters, Turns& turns)
8686
{
8787
for (auto const& pair : clusters)
8888
{
89-
auto const& indices = pair.second.turn_indices;
90-
if (indices.size() < 2)
89+
auto const& turn_indices = pair.second.turn_indices;
90+
if (turn_indices.size() < 2)
9191
{
9292
// Defensive check
9393
continue;
9494
}
95-
using point_t = decltype(turns[*indices.begin()].point);
96-
cluster_colocator<point_t>::apply(indices, turns);
95+
using point_t = decltype(turns[*turn_indices.begin()].point);
96+
cluster_colocator<point_t>::apply(turn_indices, turns);
9797
}
9898
}
9999

0 commit comments

Comments
 (0)