Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-22 01:36:13


"David B. Held" <dheld_at_[hidden]> writes:

> Does it work with VC6?

Yes!

You need to help it a little by sticking some macro invocations in
your metafunctions:

    // Return true if T is a pointer to function
    template <class T>
    struct is_pointer_to_function
        : mpl::if_<
            is_pointer<T>
            , is_pointer_to_function_aux<T>
            , mpl::bool_c<false>
>::type
    {
        BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_pointer_to_function,(T))
    };

All the boost type traits already come with those macros predefined.

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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