williamr@2: williamr@4: #ifndef BOOST_MPL_AUX_ARITY_HPP_INCLUDED williamr@4: #define BOOST_MPL_AUX_ARITY_HPP_INCLUDED williamr@2: williamr@4: // Copyright Aleksey Gurtovoy 2001-2004 williamr@2: // williamr@2: // Distributed under the Boost Software License, Version 1.0. williamr@2: // (See accompanying file LICENSE_1_0.txt or copy at williamr@2: // http://www.boost.org/LICENSE_1_0.txt) williamr@2: // williamr@2: // See http://www.boost.org/libs/mpl for documentation. williamr@2: williamr@4: // $Source: /cvsroot/boost/boost/boost/mpl/aux_/arity.hpp,v $ williamr@4: // $Date: 2004/09/02 15:40:43 $ williamr@4: // $Revision: 1.6 $ williamr@2: williamr@4: #include williamr@2: williamr@4: #if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) williamr@4: williamr@4: # include williamr@4: # include williamr@4: williamr@4: namespace boost { namespace mpl { namespace aux { williamr@4: williamr@4: // agurt, 15/mar/02: it's possible to implement the template so that it will williamr@4: // "just work" and do not require any specialization, but not on the compilers williamr@4: // that require the arity workaround in the first place williamr@4: template< typename F, BOOST_MPL_AUX_NTTP_DECL(int, N) > williamr@4: struct arity williamr@4: { williamr@4: BOOST_STATIC_CONSTANT(int, value = N); williamr@4: }; williamr@4: williamr@4: }}} williamr@4: williamr@4: #endif // BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES williamr@4: williamr@4: #endif // BOOST_MPL_AUX_ARITY_HPP_INCLUDED