Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2005-03-28 16:30:02


The following compiles (VC7.1, gcc3.2), and I am wondering if this is the
intended behaviour(boost 1.32) Note the two default parameters to eval_if. here

#include <iostream>
#include <boost/mpl/eval_if.hpp>

int main()
{
    typedef boost::mpl::eval_if<
        boost::mpl::true_ // whatever nullary metafunction
>::type type;

    std::cout << type::value <<'\n';

    // outputs 0
}

regards
Andy Little


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