2 #ifndef BOOST_MPL_PROTECT_HPP_INCLUDED
\r
3 #define BOOST_MPL_PROTECT_HPP_INCLUDED
\r
5 // Copyright Peter Dimov 2001
\r
6 // Copyright Aleksey Gurtovoy 2002-2004
\r
8 // Distributed under the Boost Software License, Version 1.0.
\r
9 // (See accompanying file LICENSE_1_0.txt or copy at
\r
10 // http://www.boost.org/LICENSE_1_0.txt)
\r
12 // See http://www.boost.org/libs/mpl for documentation.
\r
14 // $Id: protect.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
15 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
16 // $Revision: 49267 $
\r
18 #include <boost/mpl/aux_/arity.hpp>
\r
19 #include <boost/mpl/aux_/config/dtp.hpp>
\r
20 #include <boost/mpl/aux_/nttp_decl.hpp>
\r
21 #include <boost/mpl/aux_/na_spec.hpp>
\r
23 namespace boost { namespace mpl {
\r
26 typename BOOST_MPL_AUX_NA_PARAM(T)
\r
31 #if BOOST_WORKAROUND(__EDG_VERSION__, == 238)
\r
32 typedef mpl::protect type;
\r
34 typedef protect type;
\r
38 #if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)
\r
40 template< BOOST_MPL_AUX_NTTP_DECL(int, N), typename T >
\r
41 struct arity< protect<T>, N >
\r
48 BOOST_MPL_AUX_NA_SPEC_MAIN(1, protect)
\r
49 #if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)
\r
50 BOOST_MPL_AUX_NA_SPEC_TEMPLATE_ARITY(1, 1, protect)
\r
55 #endif // BOOST_MPL_PROTECT_HPP_INCLUDED
\r