mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
[fix] rename indices for issue 1169
This commit is contained in:
parent
0237a9d966
commit
bce027fd92
@ -86,14 +86,14 @@ inline void colocate_clusters(Clusters const& clusters, Turns& turns)
|
|||||||
{
|
{
|
||||||
for (auto const& pair : clusters)
|
for (auto const& pair : clusters)
|
||||||
{
|
{
|
||||||
auto const& indices = pair.second.turn_indices;
|
auto const& turn_indices = pair.second.turn_indices;
|
||||||
if (indices.size() < 2)
|
if (turn_indices.size() < 2)
|
||||||
{
|
{
|
||||||
// Defensive check
|
// Defensive check
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
using point_t = decltype(turns[*indices.begin()].point);
|
using point_t = decltype(turns[*turn_indices.begin()].point);
|
||||||
cluster_colocator<point_t>::apply(indices, turns);
|
cluster_colocator<point_t>::apply(turn_indices, turns);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user