1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/mpl/protect.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,55 @@
1.4 +
1.5 +#ifndef BOOST_MPL_PROTECT_HPP_INCLUDED
1.6 +#define BOOST_MPL_PROTECT_HPP_INCLUDED
1.7 +
1.8 +// Copyright Peter Dimov 2001
1.9 +// Copyright Aleksey Gurtovoy 2002-2004
1.10 +//
1.11 +// Distributed under the Boost Software License, Version 1.0.
1.12 +// (See accompanying file LICENSE_1_0.txt or copy at
1.13 +// http://www.boost.org/LICENSE_1_0.txt)
1.14 +//
1.15 +// See http://www.boost.org/libs/mpl for documentation.
1.16 +
1.17 +// $Source: /cvsroot/boost/boost/boost/mpl/protect.hpp,v $
1.18 +// $Date: 2004/09/07 21:37:24 $
1.19 +// $Revision: 1.10 $
1.20 +
1.21 +#include <boost/mpl/aux_/arity.hpp>
1.22 +#include <boost/mpl/aux_/config/dtp.hpp>
1.23 +#include <boost/mpl/aux_/nttp_decl.hpp>
1.24 +#include <boost/mpl/aux_/na_spec.hpp>
1.25 +
1.26 +namespace boost { namespace mpl {
1.27 +
1.28 +template<
1.29 + typename BOOST_MPL_AUX_NA_PARAM(T)
1.30 + , int not_le_ = 0
1.31 + >
1.32 +struct protect : T
1.33 +{
1.34 +#if BOOST_WORKAROUND(__EDG_VERSION__, == 238)
1.35 + typedef mpl::protect type;
1.36 +#else
1.37 + typedef protect type;
1.38 +#endif
1.39 +};
1.40 +
1.41 +#if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)
1.42 +namespace aux {
1.43 +template< BOOST_MPL_AUX_NTTP_DECL(int, N), typename T >
1.44 +struct arity< protect<T>, N >
1.45 + : arity<T,N>
1.46 +{
1.47 +};
1.48 +} // namespace aux
1.49 +#endif
1.50 +
1.51 +BOOST_MPL_AUX_NA_SPEC_MAIN(1, protect)
1.52 +#if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)
1.53 +BOOST_MPL_AUX_NA_SPEC_TEMPLATE_ARITY(1, 1, protect)
1.54 +#endif
1.55 +
1.56 +}}
1.57 +
1.58 +#endif // BOOST_MPL_PROTECT_HPP_INCLUDED