From df940da6b1827a5322a1b6c9dc96b5c446e48b13 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Fri, 22 Feb 2019 16:36:18 +0100 Subject: [PATCH] Fix FT type detection --- .../include/CGAL/IO/read_ply_points.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Point_set_processing_3/include/CGAL/IO/read_ply_points.h b/Point_set_processing_3/include/CGAL/IO/read_ply_points.h index a7cc94683ca..5a3c819bf52 100644 --- a/Point_set_processing_3/include/CGAL/IO/read_ply_points.h +++ b/Point_set_processing_3/include/CGAL/IO/read_ply_points.h @@ -92,10 +92,19 @@ namespace CGAL { }; /// \cond SKIP_IN_MANUAL + + // Use a double property for all kernels... + template struct Convert_FT { typedef double type; }; + // ...except if kernel uses type float + template <> struct Convert_FT { typedef float type; }; + template struct GetFTFromMap { - typedef typename Kernel_traits::value_type>::Kernel::FT type; + typedef typename Convert_FT + ::value_type>::Kernel::FT>::type type; }; /// \endcond