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