1 //-----------------------------------------------------------------------------
2 // boost/type_traits/detail/template_arity_spec.hpp header file
3 // See http://www.boost.org for updates, documentation, and revision history.
4 //-----------------------------------------------------------------------------
9 // Permission to use, copy, modify, distribute and sell this software
10 // and its documentation for any purpose is hereby granted without fee,
11 // provided that the above copyright notice appears in all copies and
12 // that both the copyright notice and this permission notice appear in
13 // supporting documentation. No representations are made about the
14 // suitability of this software for any purpose. It is provided "as is"
15 // without express or implied warranty.
17 // no include guards, the header is intended for multiple inclusion!
19 #include "boost/mpl/aux_/template_arity_fwd.hpp"
20 #include "boost/mpl/aux_/preprocessor/params.hpp"
21 #include "boost/mpl/aux_/lambda_support.hpp"
22 #include "boost/mpl/aux_/config/overload_resolution.hpp"
23 #include "boost/config.hpp"
25 #if defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT) && \
26 defined(BOOST_MPL_BROKEN_OVERLOAD_RESOLUTION)
27 # define BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(i, name) \
28 namespace mpl { namespace aux { \
29 template< BOOST_MPL_PP_PARAMS(i, typename T) > \
30 struct template_arity< \
31 name< BOOST_MPL_PP_PARAMS(i, T) > \
34 BOOST_STATIC_CONSTANT(int, value = i ); \
39 # define BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(i, name) /**/