source: NonGTP/Boost/boost/mpl/aux_/traits_lambda_spec.hpp @ 857

Revision 857, 1.5 KB checked in by igarcia, 19 years ago (diff)
RevLine 
[857]1
2#ifndef BOOST_MPL_AUX_TRAITS_LAMBDA_SPEC_HPP_INCLUDED
3#define BOOST_MPL_AUX_TRAITS_LAMBDA_SPEC_HPP_INCLUDED
4
5// Copyright Aleksey Gurtovoy 2000-2004
6//
7// Distributed under the Boost Software License, Version 1.0.
8// (See accompanying file LICENSE_1_0.txt or copy at
9// http://www.boost.org/LICENSE_1_0.txt)
10//
11// See http://www.boost.org/libs/mpl for documentation.
12
13// $Source: /cvsroot/boost/boost/boost/mpl/aux_/traits_lambda_spec.hpp,v $
14// $Date: 2004/09/02 15:40:44 $
15// $Revision: 1.6 $
16
17#include <boost/mpl/void.hpp>
18#include <boost/mpl/aux_/preprocessor/params.hpp>
19#include <boost/mpl/aux_/config/lambda.hpp>
20
21#if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)
22
23#   define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(i, trait) /**/
24
25#elif !defined(BOOST_MPL_CFG_MSVC_ETI_BUG)
26
27#   define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(i, trait) \
28template<> struct trait<void_> \
29{ \
30    template< BOOST_MPL_PP_PARAMS(i, typename T) > struct apply \
31    { \
32    }; \
33}; \
34/**/
35
36#else
37
38#   define BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(i, trait) \
39template<> struct trait<void_> \
40{ \
41    template< BOOST_MPL_PP_PARAMS(i, typename T) > struct apply \
42    { \
43    }; \
44}; \
45template<> struct trait<int> \
46{ \
47    template< BOOST_MPL_PP_PARAMS(i, typename T) > struct apply \
48    { \
49        typedef int type; \
50    }; \
51}; \
52/**/
53
54#endif // BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT
55
56#endif // BOOST_MPL_AUX_TRAITS_LAMBDA_SPEC_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.