epoc32/include/stdapis/boost/mpl/protect.hpp
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
williamr@2
     2
#ifndef BOOST_MPL_PROTECT_HPP_INCLUDED
williamr@2
     3
#define BOOST_MPL_PROTECT_HPP_INCLUDED
williamr@2
     4
williamr@2
     5
// Copyright Peter Dimov 2001
williamr@2
     6
// Copyright Aleksey Gurtovoy 2002-2004
williamr@2
     7
//
williamr@2
     8
// Distributed under the Boost Software License, Version 1.0. 
williamr@2
     9
// (See accompanying file LICENSE_1_0.txt or copy at 
williamr@2
    10
// http://www.boost.org/LICENSE_1_0.txt)
williamr@2
    11
//
williamr@2
    12
// See http://www.boost.org/libs/mpl for documentation.
williamr@2
    13
williamr@2
    14
// $Source: /cvsroot/boost/boost/boost/mpl/protect.hpp,v $
williamr@2
    15
// $Date: 2004/09/07 21:37:24 $
williamr@2
    16
// $Revision: 1.10 $
williamr@2
    17
williamr@2
    18
#include <boost/mpl/aux_/arity.hpp>
williamr@2
    19
#include <boost/mpl/aux_/config/dtp.hpp>
williamr@2
    20
#include <boost/mpl/aux_/nttp_decl.hpp>
williamr@2
    21
#include <boost/mpl/aux_/na_spec.hpp>
williamr@2
    22
williamr@2
    23
namespace boost { namespace mpl {
williamr@2
    24
williamr@2
    25
template<
williamr@2
    26
      typename BOOST_MPL_AUX_NA_PARAM(T)
williamr@2
    27
    , int not_le_ = 0
williamr@2
    28
    >
williamr@2
    29
struct protect : T
williamr@2
    30
{
williamr@2
    31
#if BOOST_WORKAROUND(__EDG_VERSION__, == 238)
williamr@2
    32
    typedef mpl::protect type;
williamr@2
    33
#else
williamr@2
    34
    typedef protect type;
williamr@2
    35
#endif
williamr@2
    36
};
williamr@2
    37
williamr@2
    38
#if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)
williamr@2
    39
namespace aux { 
williamr@2
    40
template< BOOST_MPL_AUX_NTTP_DECL(int, N), typename T >
williamr@2
    41
struct arity< protect<T>, N > 
williamr@2
    42
    : arity<T,N>
williamr@2
    43
{ 
williamr@2
    44
};
williamr@2
    45
} // namespace aux
williamr@2
    46
#endif
williamr@2
    47
williamr@2
    48
BOOST_MPL_AUX_NA_SPEC_MAIN(1, protect)
williamr@2
    49
#if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)
williamr@2
    50
BOOST_MPL_AUX_NA_SPEC_TEMPLATE_ARITY(1, 1, protect)
williamr@2
    51
#endif
williamr@2
    52
williamr@2
    53
}}
williamr@2
    54
williamr@2
    55
#endif // BOOST_MPL_PROTECT_HPP_INCLUDED