Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:47:41

0001 
0002 #ifndef BOOST_MPL_AUX_ARITY_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_ARITY_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2001-2004
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. 
0008 // (See accompanying file LICENSE_1_0.txt or copy at 
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See http://www.boost.org/libs/mpl for documentation.
0012 
0013 // $Id$
0014 // $Date$
0015 // $Revision$
0016 
0017 #include <boost/mpl/aux_/config/dtp.hpp>
0018 
0019 #if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)
0020 
0021 #   include <boost/mpl/aux_/nttp_decl.hpp>
0022 #   include <boost/mpl/aux_/config/static_constant.hpp>
0023 
0024 namespace boost { namespace mpl { namespace aux {
0025 
0026 // agurt, 15/mar/02: it's possible to implement the template so that it will 
0027 // "just work" and do not require any specialization, but not on the compilers
0028 // that require the arity workaround in the first place
0029 template< typename F, BOOST_MPL_AUX_NTTP_DECL(int, N) >
0030 struct arity
0031 {
0032     BOOST_STATIC_CONSTANT(int, value = N);
0033 };
0034 
0035 }}}
0036 
0037 #endif // BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
0038 
0039 #endif // BOOST_MPL_AUX_ARITY_HPP_INCLUDED