From 026049cf8ed2649a7a64f5e63f45176acff7abe6 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 10 Oct 2022 16:15:01 +0200 Subject: [PATCH] Switch to Epick-with-float using a new macro If `CGAL_EPICK_SINGLE_PRECISION` is defined, then the number type of `CGAL::Epick` is `float` instead of `double`. --- .../CGAL/Exact_predicates_inexact_constructions_kernel.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Kernel_23/include/CGAL/Exact_predicates_inexact_constructions_kernel.h b/Kernel_23/include/CGAL/Exact_predicates_inexact_constructions_kernel.h index 7574c83412e..c2428965769 100644 --- a/Kernel_23/include/CGAL/Exact_predicates_inexact_constructions_kernel.h +++ b/Kernel_23/include/CGAL/Exact_predicates_inexact_constructions_kernel.h @@ -26,9 +26,15 @@ namespace CGAL { // The following is equivalent to Filtered_kernel< Simple_cartesian >, // but it's shorter in terms of template name length (for error messages, mangling...). +#ifndef CGAL_EPICK_SINGLE_PRECISION +using Epick_number_type = double; +#else +using Epick_number_type = float; +#endif + class Epick : public Filtered_kernel_adaptor< - Type_equality_wrapper< Simple_cartesian::Base::Type, Epick >, + Type_equality_wrapper< Simple_cartesian::Base::Type, Epick >, #ifdef CGAL_NO_STATIC_FILTERS false > #else