diff --git a/Mesh_3/include/CGAL/Labeled_mesh_domain_3.h b/Mesh_3/include/CGAL/Labeled_mesh_domain_3.h index 4e8200f5186..8d66e559c3a 100644 --- a/Mesh_3/include/CGAL/Labeled_mesh_domain_3.h +++ b/Mesh_3/include/CGAL/Labeled_mesh_domain_3.h @@ -128,7 +128,7 @@ namespace internal { struct Detect_features_in_domain { std::vector> operator()(const CGAL::Image_3& image, - MeshDomain& domain, + const MeshDomain& domain, DetectFunctor functor) const { return functor(image, domain); } @@ -138,7 +138,7 @@ namespace internal { struct Detect_features_in_domain { std::vector> operator()(const CGAL::Image_3&, - MeshDomain&, + const MeshDomain&, Null_functor) const { return std::vector>(); } @@ -147,37 +147,13 @@ namespace internal { template std::vector> detect_features(const CGAL::Image_3& image, - MeshDomain& domain, + const MeshDomain& domain, DetectFunctor functor) { return Detect_features_in_domain() (image, domain, functor); } - // Add_input_features - template - struct Add_input_features_in_domain { - std::vector> - operator()(MeshDomain& domain, DetectFunctor functor) const { - return functor(domain); - } - }; - // specialization for `Null_functor`: create the default functor - template - struct Add_input_features_in_domain { - std::vector> - operator()(MeshDomain&, Null_functor) const { - return std::vector>(); - } - }; - - template - std::vector> - add_input_features(MeshDomain& domain, DetectFunctor functor) - { - return Add_input_features_in_domain()(domain, functor); - } - template struct Add_features_in_domain { template