2 #ifndef BOOST_MPL_AUX_ARITY_HPP_INCLUDED
\r
3 #define BOOST_MPL_AUX_ARITY_HPP_INCLUDED
\r
5 // Copyright Aleksey Gurtovoy 2001-2004
\r
7 // Distributed under the Boost Software License, Version 1.0.
\r
8 // (See accompanying file LICENSE_1_0.txt or copy at
\r
9 // http://www.boost.org/LICENSE_1_0.txt)
\r
11 // See http://www.boost.org/libs/mpl for documentation.
\r
13 // $Id: arity.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
14 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
15 // $Revision: 49267 $
\r
17 #include <boost/mpl/aux_/config/dtp.hpp>
\r
19 #if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)
\r
21 # include <boost/mpl/aux_/nttp_decl.hpp>
\r
22 # include <boost/mpl/aux_/config/static_constant.hpp>
\r
24 namespace boost { namespace mpl { namespace aux {
\r
26 // agurt, 15/mar/02: it's possible to implement the template so that it will
\r
27 // "just work" and do not require any specialization, but not on the compilers
\r
28 // that require the arity workaround in the first place
\r
29 template< typename F, BOOST_MPL_AUX_NTTP_DECL(int, N) >
\r
32 BOOST_STATIC_CONSTANT(int, value = N);
\r
37 #endif // BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
\r
39 #endif // BOOST_MPL_AUX_ARITY_HPP_INCLUDED
\r