blob: 4feb8d3a4d74ca56b7b0bbc9991d1a280c29e490 [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001
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 Thompson2277ce52013-08-01 17:34:11 -070010#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 Thompsonf7d49942013-08-01 16:47:40 -070015
Jeff Thompson3d613fd2013-10-15 15:39:04 -070016#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 Thompsonf7d49942013-08-01 16:47:40 -070019namespace mpl { namespace aux { \
Jeff Thompson3d613fd2013-10-15 15:39:04 -070020template< NDNBOOST_MPL_PP_PARAMS(i, typename T) > \
Jeff Thompsonf7d49942013-08-01 16:47:40 -070021struct template_arity< \
Jeff Thompson3d613fd2013-10-15 15:39:04 -070022 name< NDNBOOST_MPL_PP_PARAMS(i, T) > \
Jeff Thompsonf7d49942013-08-01 16:47:40 -070023 > \
24 : int_<i> \
25{ \
26}; \
27}} \
28/**/
29#else
Jeff Thompson3d613fd2013-10-15 15:39:04 -070030# define NDNBOOST_TT_AUX_TEMPLATE_ARITY_SPEC(i, name) /**/
Jeff Thompsonf7d49942013-08-01 16:47:40 -070031#endif