// Copyright Daniel Wallin 2006. // Copyright Cromwell D. Enage 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PARAMETER_AUX_PP_IMPL_MATCH_HPP #define BOOST_PARAMETER_AUX_PP_IMPL_MATCH_HPP #include #if defined(BOOST_PARAMETER_HAS_PERFECT_FORWARDING) namespace boost { namespace parameter { namespace aux { // Recast the ParameterSpec's nested match metafunction // as a free metafunction. // // No more limits set by BOOST_PARAMETER_MAX_ARITY. -- Cromwell D. Enage template struct match : Parameters::BOOST_NESTED_TEMPLATE match { }; }}} // namespace boost::parameter::aux #else #include #include #include #include namespace boost { namespace parameter { namespace aux { // Recast the ParameterSpec's nested match metafunction // as a free metafunction. template < typename Parameters BOOST_PP_ENUM_TRAILING_BINARY_PARAMS( BOOST_PARAMETER_MAX_ARITY , typename A , = ::boost::parameter::void_ BOOST_PP_INTERCEPT ) > struct match : Parameters::BOOST_NESTED_TEMPLATE match< BOOST_PP_ENUM_PARAMS(BOOST_PARAMETER_MAX_ARITY, A) > { }; }}} // namespace boost::parameter::aux #endif // BOOST_PARAMETER_HAS_PERFECT_FORWARDING #endif // include guard