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 1bd8a1ee76a9..cc4dc1455d81 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 @@ -34,6 +34,7 @@ #include #include +#include #include #include @@ -767,6 +768,9 @@ class Surface_mesh_geodesic_distances_3 typedef LA LA_type; #endif + static_assert(!std::is_same_v, + "Error: You must either provide the template parameter 'LA' or link with the target CGAL::Eigen3_support"); + typedef typename Default::Get< VertexPointMap, typename boost::property_map< TriangleMesh, vertex_point_t>::const_type>::type Vertex_point_map; diff --git a/Surface_mesh_deformation/include/CGAL/Surface_mesh_deformation.h b/Surface_mesh_deformation/include/CGAL/Surface_mesh_deformation.h index c35bf0a655a1..fd0af38c8de8 100644 --- a/Surface_mesh_deformation/include/CGAL/Surface_mesh_deformation.h +++ b/Surface_mesh_deformation/include/CGAL/Surface_mesh_deformation.h @@ -28,6 +28,7 @@ #include #include #include +#include /* #define CGAL_DEFORM_MESH_USE_EXPERIMENTAL_SCALE // define it to activate optimal scale calculation, @@ -231,6 +232,13 @@ class Surface_mesh_deformation // sparse linear solver #ifndef DOXYGEN_RUNNING + #if !defined(CGAL_EIGEN3_ENABLED) + static_assert(!(std::is_same::value), + "Error: You must either provide the template parameter 'ST' or link with the target CGAL::Eigen3_support"); + static_assert(!(std::is_same::value), + "Error: You must either provide the template parameter 'CR' or link with the target CGAL::Eigen3_support"); + #endif + typedef typename Default::Get< ST, #if defined(CGAL_EIGEN3_ENABLED) diff --git a/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/Iterative_authalic_parameterizer_3.h b/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/Iterative_authalic_parameterizer_3.h index c54d0d2678de..ef64f5095422 100644 --- a/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/Iterative_authalic_parameterizer_3.h +++ b/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/Iterative_authalic_parameterizer_3.h @@ -48,6 +48,7 @@ #include #include #include +#include #include #define CGAL_SMP_IA_DEBUG_L0 0 @@ -117,6 +118,9 @@ class Iterative_authalic_parameterizer_3 typedef SolverTraits_ Solver_traits; #endif + static_assert(!std::is_same_v, + "Error: You must either provide the template parameter 'SolverTraits_' or link with the target CGAL::Eigen3_support"); + /// Triangle mesh type typedef TriangleMesh_ Triangle_mesh; diff --git a/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/MVC_post_processor_3.h b/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/MVC_post_processor_3.h index ae6dcdde6f30..c68b4b34b8c1 100644 --- a/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/MVC_post_processor_3.h +++ b/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/MVC_post_processor_3.h @@ -39,6 +39,7 @@ #include #include #include +#include /// \file MVC_post_processor_3.h @@ -99,6 +100,9 @@ class MVC_post_processor_3 typedef SolverTraits_ Solver_traits; #endif + static_assert(!std::is_same_v, + "Error: You must either provide the template parameter 'SolverTraits_' or link with the target CGAL::Eigen3_support"); + /// Triangle mesh type typedef TriangleMesh_ Triangle_mesh; diff --git a/Surface_mesh_skeletonization/include/CGAL/Mean_curvature_flow_skeletonization.h b/Surface_mesh_skeletonization/include/CGAL/Mean_curvature_flow_skeletonization.h index 40c54d999b90..ea02536efe07 100644 --- a/Surface_mesh_skeletonization/include/CGAL/Mean_curvature_flow_skeletonization.h +++ b/Surface_mesh_skeletonization/include/CGAL/Mean_curvature_flow_skeletonization.h @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -186,6 +187,11 @@ class Mean_curvature_flow_skeletonization #endif #ifndef DOXYGEN_RUNNING + #if !defined(CGAL_EIGEN3_ENABLED) + static_assert(!(std::is_same::value), + "Error: You must either provide the template parameter 'SolverTraits_' or link with the target CGAL::Eigen3_support"); + #endif + typedef typename Default::Get< SolverTraits_, #if defined(CGAL_EIGEN3_ENABLED)