From 959bf3ba4617c723f61007cde31a73d83f1b746c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 29 Jan 2021 18:56:21 +0100 Subject: [PATCH] Fix bad value_type --- .../include/CGAL/Delaunay_triangulation_on_sphere_2.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h b/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h index b60ef33fddc..c9f873da2fa 100644 --- a/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h +++ b/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h @@ -240,7 +240,10 @@ public: Vertex_handle insert_cocircular(const Point& p, Locate_type lt, Face_handle loc); template - int insert(InputIterator first, InputIterator beyond); + int insert(InputIterator first, InputIterator beyond, + typename std::enable_if< + std::is_same::value_type, + Point>::value>::type* = nullptr); // For convenience when P3 != PoS2 template @@ -254,7 +257,7 @@ public: template int insert(InputIterator first, InputIterator beyond, typename std::enable_if< - !std::is_same::type, + !std::is_same::value_type, Point>::value>::type* = nullptr) { typename Geom_traits::Construct_point_on_sphere_2 cst = geom_traits().construct_point_on_sphere_2_object(); @@ -650,7 +653,9 @@ template template int Delaunay_triangulation_on_sphere_2:: -insert(InputIterator first, InputIterator beyond) +insert(InputIterator first, InputIterator beyond, + typename std::enable_if< + std::is_same::value_type, Point>::value>::type*) { int n = number_of_vertices();