diff --git a/STL_Extension/include/CGAL/Named_function_parameters.h b/STL_Extension/include/CGAL/Named_function_parameters.h index 2d5a83bc92c..75db8c5ca11 100644 --- a/STL_Extension/include/CGAL/Named_function_parameters.h +++ b/STL_Extension/include/CGAL/Named_function_parameters.h @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -311,6 +312,9 @@ struct Named_function_parameters { return Named_function_parameters(np.v,*this).combine(nps...); } + + // typedef for SFINAE + typedef int CGAL_Named_function_parameters_class; }; namespace parameters { @@ -522,4 +526,9 @@ namespace boost } #endif +// For disambiguation using SFINAR +BOOST_MPL_HAS_XXX_TRAIT_DEF(CGAL_Named_function_parameters_class) +template +CGAL_CPP17_INLINE constexpr bool is_named_function_parameter = has_CGAL_Named_function_parameters_class::value; + #endif // CGAL_BOOST_FUNCTION_PARAMS_HPP