Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:41:56

0001 
0002 #ifndef BOOST_MPL_PROTECT_HPP_INCLUDED
0003 #define BOOST_MPL_PROTECT_HPP_INCLUDED
0004 
0005 // Copyright Peter Dimov 2001
0006 // Copyright Aleksey Gurtovoy 2002-2004
0007 //
0008 // Distributed under the Boost Software License, Version 1.0. 
0009 // (See accompanying file LICENSE_1_0.txt or copy at 
0010 // http://www.boost.org/LICENSE_1_0.txt)
0011 //
0012 // See http://www.boost.org/libs/mpl for documentation.
0013 
0014 // $Id$
0015 // $Date$
0016 // $Revision$
0017 
0018 #include <boost/mpl/aux_/arity.hpp>
0019 #include <boost/mpl/aux_/config/dtp.hpp>
0020 #include <boost/mpl/aux_/nttp_decl.hpp>
0021 #include <boost/mpl/aux_/na_spec.hpp>
0022 
0023 namespace boost { namespace mpl {
0024 
0025 template<
0026       typename BOOST_MPL_AUX_NA_PARAM(T)
0027     , int not_le_ = 0
0028     >
0029 struct protect : T
0030 {
0031 #if BOOST_WORKAROUND(__EDG_VERSION__, == 238)
0032     typedef mpl::protect type;
0033 #else
0034     typedef protect type;
0035 #endif
0036 };
0037 
0038 #if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)
0039 namespace aux { 
0040 template< BOOST_MPL_AUX_NTTP_DECL(int, N), typename T >
0041 struct arity< protect<T>, N > 
0042     : arity<T,N>
0043 { 
0044 };
0045 } // namespace aux
0046 #endif
0047 
0048 BOOST_MPL_AUX_NA_SPEC_MAIN(1, protect)
0049 #if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)
0050 BOOST_MPL_AUX_NA_SPEC_TEMPLATE_ARITY(1, 1, protect)
0051 #endif
0052 
0053 }}
0054 
0055 #endif // BOOST_MPL_PROTECT_HPP_INCLUDED