remove NP template parameter where it's not necessary

* add CGAL_DEPRECATED
* fix ambiguity between exude_mesh_3(c3t3) (one param) versions
by removing default time_limit
This commit is contained in:
Jane Tournois 2023-03-30 10:40:28 +02:00
parent 04b5104b5b
commit 4b632c29ff
2 changed files with 4 additions and 3 deletions

View File

@ -485,7 +485,7 @@ public:
#ifndef CGAL_NO_DEPRECATED_CODE
template<typename Function, typename Bounding_object, typename CGAL_NP_TEMPLATE_PARAMETERS>
template<typename Function, typename Bounding_object>
#if !defined(BOOST_MSVC)
CGAL_DEPRECATED
#endif

View File

@ -102,8 +102,9 @@ Mesh_optimization_return_code exude_mesh_3(C3T3& c3t3,const CGAL_NP_CLASS& np =
}
#ifndef CGAL_NO_DEPRECATED_CODE
template<typename C3T3, typename CGAL_NP_TEMPLATE_PARAMETERS>
Mesh_optimization_return_code exude_mesh_3(C3T3& c3t3, double time_limit = 0, double sliver_bound = 0)
template<typename C3T3>
CGAL_DEPRECATED
Mesh_optimization_return_code exude_mesh_3(C3T3& c3t3, double time_limit, double sliver_bound = 0)
{
return exude_mesh_3(c3t3, CGAL::parameters::time_limit(time_limit).sliver_bound(sliver_bound));
}