From 3a0a4a60674256f45f2b6e6248ba7db62ccf68a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 17 Dec 2021 12:22:40 +0100 Subject: [PATCH] Do not forbid any non-fundamental type conversion: This is because kernel converters are required before type equality is established, and so one needs conversion for e.g. PointC3. That could be added and then non-fundamental types could be forbidden in parameters of converters, but that's for another time... --- Cartesian_kernel/include/CGAL/Cartesian_converter.h | 9 --------- Homogeneous_kernel/include/CGAL/Homogeneous_converter.h | 9 --------- Kernel_d/include/CGAL/Kernel_d/Cartesian_converter_d.h | 9 --------- 3 files changed, 27 deletions(-) diff --git a/Cartesian_kernel/include/CGAL/Cartesian_converter.h b/Cartesian_kernel/include/CGAL/Cartesian_converter.h index 576c6e78599..946dc51ce4b 100644 --- a/Cartesian_kernel/include/CGAL/Cartesian_converter.h +++ b/Cartesian_kernel/include/CGAL/Cartesian_converter.h @@ -134,15 +134,6 @@ public: return t; } - template - T - operator()(const T t, - typename std::enable_if::value>::type* = nullptr) const - { - CGAL_static_assertion(!(std::is_same::value)); - return t; - } - // drop the boost::detail::variant::void_ generated by the macros // from the sequence, transform with the type mapper and throw the // new list into a variant diff --git a/Homogeneous_kernel/include/CGAL/Homogeneous_converter.h b/Homogeneous_kernel/include/CGAL/Homogeneous_converter.h index cb22a9548b9..22edf4e3e18 100644 --- a/Homogeneous_kernel/include/CGAL/Homogeneous_converter.h +++ b/Homogeneous_kernel/include/CGAL/Homogeneous_converter.h @@ -94,15 +94,6 @@ public: return t; } - template - T - operator()(const T t, - typename std::enable_if::value>::type* = nullptr) const - { - CGAL_static_assertion(!(std::is_same::value)); - return t; - } - typename K2::Point_2 operator()(const typename K1::Point_2 &a) const { diff --git a/Kernel_d/include/CGAL/Kernel_d/Cartesian_converter_d.h b/Kernel_d/include/CGAL/Kernel_d/Cartesian_converter_d.h index c207c83dee7..e38fea77163 100644 --- a/Kernel_d/include/CGAL/Kernel_d/Cartesian_converter_d.h +++ b/Kernel_d/include/CGAL/Kernel_d/Cartesian_converter_d.h @@ -107,15 +107,6 @@ public: return t; } - template - T - operator()(const T t, - typename std::enable_if::value>::type* = nullptr) const - { - CGAL_static_assertion(!(std::is_same::value)); - return t; - } - std::vector operator()(const std::vector& v) const {