From 17ca29713a09612f13a522888a5deef1d22876a6 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 22 Aug 2014 15:14:19 +0200 Subject: [PATCH] Add a forwarding function as we had to remove a using statement --- .../CGAL/Constrained_Delaunay_triangulation_2.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Triangulation_2/include/CGAL/Constrained_Delaunay_triangulation_2.h b/Triangulation_2/include/CGAL/Constrained_Delaunay_triangulation_2.h index 571892f2a8c..e727a02cc74 100644 --- a/Triangulation_2/include/CGAL/Constrained_Delaunay_triangulation_2.h +++ b/Triangulation_2/include/CGAL/Constrained_Delaunay_triangulation_2.h @@ -99,7 +99,10 @@ public: using Ctr::collinear_between; using Ctr::are_there_incident_constraints; using Ctr::make_hole; - using Ctr::insert_constraint; + // The next using statement makes trouble for VC++ with the version + // of the method that is templated with PointIterator + // VC++ cannot disambiguate between this method and the method of the base class + // using Ctr::insert_constraint; using Ctr::locate; using Ctr::test_dim_down; using Ctr::fill_hole_delaunay; @@ -201,6 +204,16 @@ public: void insert(Vertex_handle va, Vertex_handle vb) {insert_constraint(va,vb);} + void insert_constraint(Vertex_handle va, Vertex_handle vb) + { + ((Ctr*)this)->insert_constraint(va,vb); + } + + void + insert_constraint(const Point& a, const Point& b) + { + ((Ctr*)this)->insert_constraint(a,b); + } template void insert_constraint(PointIterator first, PointIterator last, bool close=false)