From 01e75ef34568170228bd036d259fa1cc41ae2cbb Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 14 Feb 2023 13:27:46 +0100 Subject: [PATCH] Fix with -DCGAL_NO_DEPRECATED_CODE --- Triangulation_2/include/CGAL/Constrained_triangulation_2.h | 1 + .../internal/Polyline_constraint_hierarchy_2.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Triangulation_2/include/CGAL/Constrained_triangulation_2.h b/Triangulation_2/include/CGAL/Constrained_triangulation_2.h index 37c27cb81a8..80d7a197e3e 100644 --- a/Triangulation_2/include/CGAL/Constrained_triangulation_2.h +++ b/Triangulation_2/include/CGAL/Constrained_triangulation_2.h @@ -622,6 +622,7 @@ public: #ifdef CGAL_CDT_2_DEBUG_INTERSECTIONS auto display_vertex(Vertex_handle v) const { With_point_tag point_tag; + using CGAL::IO::oformat; return oformat(v, point_tag); } #endif // CGAL_CDT_2_DEBUG_INTERSECTIONS diff --git a/Triangulation_2/include/CGAL/Triangulation_2/internal/Polyline_constraint_hierarchy_2.h b/Triangulation_2/include/CGAL/Triangulation_2/internal/Polyline_constraint_hierarchy_2.h index 8870458b042..7178b1dc5fa 100644 --- a/Triangulation_2/include/CGAL/Triangulation_2/internal/Polyline_constraint_hierarchy_2.h +++ b/Triangulation_2/include/CGAL/Triangulation_2/internal/Polyline_constraint_hierarchy_2.h @@ -862,6 +862,7 @@ insert_constraint(T va, T vb){ Context_list* fathers; #ifdef CGAL_CDT_2_DEBUG_INTERSECTIONS + using CGAL::IO::oformat; std::cerr << CGAL::internal::cdt_2_indent_level << "C_hierachy.insert_constraint( " << oformat(va) << ", " << oformat(vb) << ")\n"; @@ -896,6 +897,7 @@ insert_constraint_old_API(T va, T vb){ Context_list* fathers; #ifdef CGAL_CDT_2_DEBUG_INTERSECTIONS + using CGAL::IO::oformat; std::cerr << CGAL::internal::cdt_2_indent_level << "C_hierachy.insert_constraint_old_API( " << oformat(va) << ", " << oformat(vb) << ")\n"; @@ -928,6 +930,7 @@ append_constraint(Constraint_id cid, T va, T vb){ Context_list* fathers; #ifdef CGAL_CDT_2_DEBUG_INTERSECTIONS + using CGAL::IO::oformat; std::cerr << CGAL::internal::cdt_2_indent_level << "C_hierachy.append_constraint( ..., " << oformat(va) << ", " << oformat(vb) << ")\n"; @@ -1044,6 +1047,7 @@ void Polyline_constraint_hierarchy_2:: add_Steiner(T va, T vb, T vc){ #ifdef CGAL_CDT_2_DEBUG_INTERSECTIONS + using CGAL::IO::oformat; std::cerr << CGAL::internal::cdt_2_indent_level << "C_hierachy.add_Steinter( " << oformat(va) << ", " << oformat(vb) << ", " << oformat(vc)