From f4f484c5e006b4a367f2a0577d61d3c03e71bae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 25 Oct 2021 09:47:29 +0200 Subject: [PATCH] workaround warning --- .../CGAL/Polygon_mesh_processing/self_intersections.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); }