From d5886187b49afb5e0df60f1decc6eb089ef672fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Tue, 5 Oct 2021 11:43:54 +0200 Subject: [PATCH] Add a static assertion about the Heat Method mode --- .../CGAL/Heat_method_3/Surface_mesh_geodesic_distances_3.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Heat_method_3/include/CGAL/Heat_method_3/Surface_mesh_geodesic_distances_3.h b/Heat_method_3/include/CGAL/Heat_method_3/Surface_mesh_geodesic_distances_3.h index b09fc362137..06166b71fa7 100644 --- a/Heat_method_3/include/CGAL/Heat_method_3/Surface_mesh_geodesic_distances_3.h +++ b/Heat_method_3/include/CGAL/Heat_method_3/Surface_mesh_geodesic_distances_3.h @@ -820,6 +820,9 @@ class Surface_mesh_geodesic_distances_3 > #endif { + CGAL_static_assertion((std::is_same::value) || + (std::is_same::value)); + // extract real types from Default #ifdef CGAL_EIGEN3_ENABLED typedef typename Default::Get<