Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | |
| 2 | // NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION |
| 3 | |
| 4 | // Copyright Aleksey Gurtovoy 2002-2004 |
| 5 | // |
| 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) |
| 9 | |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 10 | #include <ndnboost/mpl/int.hpp> |
| 11 | #include <ndnboost/mpl/aux_/template_arity_fwd.hpp> |
| 12 | #include <ndnboost/mpl/aux_/preprocessor/params.hpp> |
| 13 | #include <ndnboost/mpl/aux_/config/lambda.hpp> |
| 14 | #include <ndnboost/mpl/aux_/config/overload_resolution.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 15 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 16 | #if defined(NDNBOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT) \ |
| 17 | && defined(NDNBOOST_MPL_CFG_BROKEN_OVERLOAD_RESOLUTION) |
| 18 | # define NDNBOOST_TT_AUX_TEMPLATE_ARITY_SPEC(i, name) \ |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 19 | namespace mpl { namespace aux { \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 20 | template< NDNBOOST_MPL_PP_PARAMS(i, typename T) > \ |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 21 | struct template_arity< \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 22 | name< NDNBOOST_MPL_PP_PARAMS(i, T) > \ |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 23 | > \ |
| 24 | : int_<i> \ |
| 25 | { \ |
| 26 | }; \ |
| 27 | }} \ |
| 28 | /**/ |
| 29 | #else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 30 | # define NDNBOOST_TT_AUX_TEMPLATE_ARITY_SPEC(i, name) /**/ |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 31 | #endif |