]> git.lyx.org Git - lyx.git/blob - boost/boost/type_traits/detail/template_arity_spec.hpp
update boost to version 1.29.0
[lyx.git] / boost / boost / type_traits / detail / template_arity_spec.hpp
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 //-----------------------------------------------------------------------------
5 //
6 // Copyright (c) 2002
7 // Aleksey Gurtovoy
8 //
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.
16
17 // no include guards, the header is intended for multiple inclusion!
18
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"
24
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) > \
32     > \
33 { \
34     BOOST_STATIC_CONSTANT(int, value = i ); \
35 }; \
36 }} \
37 /**/
38 #else
39 #   define BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(i, name) /**/
40 #endif