diff --git a/Mesh_3/include/CGAL/Labeled_mesh_domain_3.h b/Mesh_3/include/CGAL/Labeled_mesh_domain_3.h index f8402f89547..28e30cd04d3 100644 --- a/Mesh_3/include/CGAL/Labeled_mesh_domain_3.h +++ b/Mesh_3/include/CGAL/Labeled_mesh_domain_3.h @@ -128,7 +128,11 @@ namespace internal { struct Detect_features_in_domain { std::vector> operator()(const CGAL::Image_3& image, DetectFunctor functor) const { +#if defined(BOOST_MSVC) && (BOOST_MSVC < 1910) //before msvc2017 + return functor.operator()(image); +#else return functor.template operator()(image); +#endif } }; // specialization for `Null_functor`: create the default functor