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
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
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 }
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