|
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?)
Thanks,
Brian
:)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk