From 7cf9a119364b79807ce58b4a07ad1da3af09280a Mon Sep 17 00:00:00 2001 From: Efi Fogel Date: Thu, 2 Jul 2020 19:11:07 +0300 Subject: [PATCH] Cleaned up --- .../include/CGAL/Arr_tracing_traits_2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_tracing_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_tracing_traits_2.h index ee88ecaf495..9dcb72fb33f 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_tracing_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_tracing_traits_2.h @@ -543,17 +543,17 @@ public: size_t i = 0; for (auto it = container.begin(); it != container.end(); ++it) { - const X_monotone_curve_2* xcv = boost::get(*it); - if (xcv) { + if (const auto* xcv = boost::get(*it)) { std::cout << " result[" << i++ << "]: xcv: " << *xcv << std::endl; continue; } - const Point_2* p = boost::get(*it); - if (p) { + if (const Point_2* p = boost::get(*it)) { std::cout << " result[" << i++ << "]: p: " << *p << std::endl; continue; } + + CGAL_error(); } for (auto it = container.begin(); it != container.end(); ++it) *oi++ = *it;