From 941f73f3c09d97e8ecfc3972eebd58d258447af2 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 20 Aug 2015 22:28:49 +0200 Subject: [PATCH] use CGAL_assert and assertion_code (cherry picked from commit dcbab4e0d4ebf709e78688ef5407527fa02831a0) --- .../include/CGAL/Polyline_simplification_2/simplify.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Polyline_simplification_2/include/CGAL/Polyline_simplification_2/simplify.h b/Polyline_simplification_2/include/CGAL/Polyline_simplification_2/simplify.h index 3462b8404e5..f2bb6e6c070 100644 --- a/Polyline_simplification_2/include/CGAL/Polyline_simplification_2/simplify.h +++ b/Polyline_simplification_2/include/CGAL/Polyline_simplification_2/simplify.h @@ -212,8 +212,8 @@ public: ++circ; if(circ == wh){ typename PCT::Edge e; - bool b = pct.is_edge(uh,wh,e.first,e.second); - assert(b); + CGAL_assertion_code( bool b = ) pct.is_edge(uh,wh,e.first,e.second); + CGAL_assertion(b); return ! pct.is_constrained(e); } while(circ != wh){