
29 Mar
2007
29 Mar
'07
9:09 a.m.
Hi Scott, First of all, thanks for reporting this!
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?
As David has already pointed out, your code is perfectly fine; it's a bug in the library. I'll look into fixing this within the next couple of days. Thanks for the report, -- Aleksey Gurtovoy MetaCommunications Engineering