]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/mpl/protect.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
604754a5b113d5abd4d8796e59e5b614da3871d5
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / mpl / protect.hpp
1 \r
2 #ifndef BOOST_MPL_PROTECT_HPP_INCLUDED\r
3 #define BOOST_MPL_PROTECT_HPP_INCLUDED\r
4 \r
5 // Copyright Peter Dimov 2001\r
6 // Copyright Aleksey Gurtovoy 2002-2004\r
7 //\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
11 //\r
12 // See http://www.boost.org/libs/mpl for documentation.\r
13 \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
17 \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
22 \r
23 namespace boost { namespace mpl {\r
24 \r
25 template<\r
26       typename BOOST_MPL_AUX_NA_PARAM(T)\r
27     , int not_le_ = 0\r
28     >\r
29 struct protect : T\r
30 {\r
31 #if BOOST_WORKAROUND(__EDG_VERSION__, == 238)\r
32     typedef mpl::protect type;\r
33 #else\r
34     typedef protect type;\r
35 #endif\r
36 };\r
37 \r
38 #if defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)\r
39 namespace aux { \r
40 template< BOOST_MPL_AUX_NTTP_DECL(int, N), typename T >\r
41 struct arity< protect<T>, N > \r
42     : arity<T,N>\r
43\r
44 };\r
45 } // namespace aux\r
46 #endif\r
47 \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
51 #endif\r
52 \r
53 }}\r
54 \r
55 #endif // BOOST_MPL_PROTECT_HPP_INCLUDED\r