Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/mpl/protect.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 |
Chris@16 | 2 #ifndef BOOST_MPL_PROTECT_HPP_INCLUDED |
Chris@16 | 3 #define BOOST_MPL_PROTECT_HPP_INCLUDED |
Chris@16 | 4 |
Chris@16 | 5 // Copyright Peter Dimov 2001 |
Chris@16 | 6 // Copyright Aleksey Gurtovoy 2002-2004 |
Chris@16 | 7 // |
Chris@16 | 8 // Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 9 // (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 10 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 11 // |
Chris@16 | 12 // See http://www.boost.org/libs/mpl for documentation. |
Chris@16 | 13 |
Chris@101 | 14 // $Id$ |
Chris@101 | 15 // $Date$ |
Chris@101 | 16 // $Revision$ |
Chris@16 | 17 |
Chris@16 | 18 #include <boost/mpl/aux_/arity.hpp> |
Chris@16 | 19 #include <boost/mpl/aux_/config/dtp.hpp> |
Chris@16 | 20 #include <boost/mpl/aux_/nttp_decl.hpp> |
Chris@16 | 21 #include <boost/mpl/aux_/na_spec.hpp> |
Chris@16 | 22 |
Chris@16 | 23 namespace boost { namespace mpl { |
Chris@16 | 24 |
Chris@16 | 25 template< |
Chris@16 | 26 typename BOOST_MPL_AUX_NA_PARAM(T) |
Chris@16 | 27 , int not_le_ = 0 |
Chris@16 | 28 > |
Chris@16 | 29 struct protect : T |
Chris@16 | 30 { |
Chris@16 | 31 #if BOOST_WORKAROUND(__EDG_VERSION__, == 238) |
Chris@16 | 32 typedef mpl::protect type; |
Chris@16 | 33 #else |
Chris@16 | 34 typedef protect type; |
Chris@16 | 35 #endif |
Chris@16 | 36 }; |
Chris@16 | 37 |
Chris@16 | 38 #if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) |
Chris@16 | 39 namespace aux { |
Chris@16 | 40 template< BOOST_MPL_AUX_NTTP_DECL(int, N), typename T > |
Chris@16 | 41 struct arity< protect<T>, N > |
Chris@16 | 42 : arity<T,N> |
Chris@16 | 43 { |
Chris@16 | 44 }; |
Chris@16 | 45 } // namespace aux |
Chris@16 | 46 #endif |
Chris@16 | 47 |
Chris@16 | 48 BOOST_MPL_AUX_NA_SPEC_MAIN(1, protect) |
Chris@16 | 49 #if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT) |
Chris@16 | 50 BOOST_MPL_AUX_NA_SPEC_TEMPLATE_ARITY(1, 1, protect) |
Chris@16 | 51 #endif |
Chris@16 | 52 |
Chris@16 | 53 }} |
Chris@16 | 54 |
Chris@16 | 55 #endif // BOOST_MPL_PROTECT_HPP_INCLUDED |