on Thu Mar 22 2007, Scott Meyers
I expect the following code to compile cleanly. It does not.
#include
#include #include namespace mpl = boost::mpl; using mpl::_1; using mpl::_2;
struct A {}; struct B {};
typedef mpl::set set1; typedef mpl::set set2;
BOOST_MPL_ASSERT(( mpl::equal< mpl::erase_key
::type, mpl::erase_key ::type ));
I'm simply trying to assert that the sets {A,B} and {B,A} have the same elements after A has been removed from both. What am I doing wrong?
Nothing; this is clearly a bug in MPL, better demonstrated by:
#include