use make_range()

This commit is contained in:
Maxime Gimeno 2020-01-28 14:43:29 +01:00
parent 67a5b4d8c5
commit 6a7e89d3aa
1 changed files with 1 additions and 3 deletions

View File

@ -289,10 +289,8 @@ struct Triangle_structure_sampler_base
nb_pts_a_u = 2. / CGAL::square(min_edge_length);
}
for(TriangleIterator it = static_cast<Derived*>(this)->get_range().first;
it != static_cast<Derived*>(this)->get_range().second; ++it)
for(const auto& tr: make_range(static_cast<Derived*>(this)->get_range()))
{
auto tr = *it;
std::size_t nb_points = nb_points_per_face;
if (nb_points == 0)
{