Boost logo

Boost :

From: Brian Braatz (brianb_at_[hidden])
Date: 2005-11-25 14:42:54

/// Testing remove

        typedef vector<Y, char, long, X, bool, double> mpl_vec;
        BOOST_TEST((fusion::remove(mpl_vec(), identity<X>())
            == tuple<Y, char, long, bool, double>()));
        BOOST_TEST((fusion::remove(mpl_vec(), identity<Y>())
            == tuple<char, long, X, bool, double>()));
        BOOST_TEST((fusion::remove(mpl_vec(), identity<long>())
            == tuple<Y, char, X, bool, double>()));

My question is how does the above WORK?
What caught my attention is the char,long,bool, and double have undefined
values in them.

Is it that when performing a ==, if one is comparing a mpl sequence the
equality is based solely on TYPE? (is that what is going on?)




Boost list run by bdawes at, gregod at, cpdaniel at, john at