From 94155bd89e152f4dcde43e1443f7e02f425e15da Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Tue, 21 Jul 2020 11:23:24 +0200 Subject: [PATCH] Fix assertion with explicit boolean conversion --- Arrangement_on_surface_2/include/CGAL/Arr_segment_traits_2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_segment_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_segment_traits_2.h index 925d4f654a8..e62c6028a24 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_segment_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_segment_traits_2.h @@ -722,7 +722,7 @@ public: // Intersect the two supporting lines. auto res = kernel.intersect_2_object()(cv1.line(), cv2.line()); - CGAL_assertion(res); + CGAL_assertion(bool(res)); // Check if we have a single intersection point. const Point_2* ip = boost::get(&*res);