2 // NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION
4 // Copyright Aleksey Gurtovoy 2002-2004
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
11 // $Date: 2011-04-25 08:26:48 -0400 (Mon, 25 Apr 2011) $
14 #include <boost/type_traits/detail/template_arity_spec.hpp>
15 #include <boost/type_traits/integral_constant.hpp>
16 #include <boost/mpl/aux_/lambda_support.hpp>
17 #include <boost/mpl/size_t.hpp>
21 #if !defined(BOOST_MSVC) || BOOST_MSVC >= 1300
22 # define BOOST_TT_AUX_SIZE_T_BASE(C) public ::boost::integral_constant<std::size_t,C>
23 # define BOOST_TT_AUX_SIZE_T_TRAIT_VALUE_DECL(C) /**/
25 # define BOOST_TT_AUX_SIZE_T_BASE(C) public ::boost::mpl::size_t<C>
26 # define BOOST_TT_AUX_SIZE_T_TRAIT_VALUE_DECL(C) \
27 typedef ::boost::mpl::size_t<C> base_; \
33 #define BOOST_TT_AUX_SIZE_T_TRAIT_DEF1(trait,T,C) \
34 template< typename T > struct trait \
35 : BOOST_TT_AUX_SIZE_T_BASE(C) \
38 BOOST_TT_AUX_SIZE_T_TRAIT_VALUE_DECL(C) \
39 BOOST_MPL_AUX_LAMBDA_SUPPORT(1,trait,(T)) \
42 BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(1,trait) \
45 #define BOOST_TT_AUX_SIZE_T_TRAIT_SPEC1(trait,spec,C) \
46 template<> struct trait<spec> \
47 : BOOST_TT_AUX_SIZE_T_BASE(C) \
50 BOOST_TT_AUX_SIZE_T_TRAIT_VALUE_DECL(C) \
51 BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(1,trait,(spec)) \
55 #define BOOST_TT_AUX_SIZE_T_TRAIT_PARTIAL_SPEC1_1(param,trait,spec,C) \
56 template< param > struct trait<spec> \
57 : BOOST_TT_AUX_SIZE_T_BASE(C) \