diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/self_intersections.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/self_intersections.h index 802aeb583ec..606e13e9750 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/self_intersections.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/self_intersections.h @@ -63,14 +63,14 @@ template struct Throw_at_count_reached_functor { std::atomic& counter; - const unsigned int& max; + const unsigned int& maxval; Output_iterator out; Throw_at_count_reached_functor(std::atomic& counter, - const unsigned int& max, + const unsigned int& maxval, Output_iterator out) - : counter(counter), max(max), out(out) + : counter(counter), maxval(maxval), out(out) {} template @@ -78,7 +78,7 @@ struct Throw_at_count_reached_functor { { *out++ = t; ++counter; - if(counter >= max) + if(counter >= maxval) { throw CGAL::internal::Throw_at_output_exception(); }