From 27b011789c6142ea530575bd4f77d5bfb8ac6c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 26 Sep 2016 09:19:49 +0200 Subject: [PATCH] avoid a warning in release mode --- .../include/CGAL/Polygon_mesh_processing/repair.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/repair.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/repair.h index b1953488b89..07f9ef11a33 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/repair.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/repair.h @@ -1114,7 +1114,8 @@ bool remove_self_intersections(TriangleMesh& tm, const int max_steps = 7, bool v BOOST_FOREACH(halfedge_descriptor hh, halfedges_around_face(h, tm)) { CGAL_assertion_code(bool insert_ok =) - visited.insert(hh).second; + visited.insert(hh) + CGAL_assertion_code(.second); CGAL_assertion(insert_ok || h==hh); } }