Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2002-11-22 01:51:03


David B. Held wrote:
> Does it work with VC6?

For all type traits templates and MPL's own metafunctions/algorithms - yes,
without any restrictions; for instance, "boost/mpl/test/lambda.cpp" compiles
on MSVC 6.5 as is.

For your own metafunctions, you have to intrude them a little bit, but
otherwise it works as well:

    template< typename T > struct f
    {
        typedef T type;
        BOOST_MPL_AUX_LAMBDA_SUPPORT(1,f,(T)) // here
    };

    typedef apply1<lambda< f<_> >::type, int > f_;
    BOOST_MPL_ASSERT_IS_SAME(f_::type,int);

HTH,
Aleksey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk