
6 Aug
2004
6 Aug
'04
6:05 a.m.
Rene Rivera wrote:
But this one fails:
Bitset b(lhs); BOOST_CHECK(b.size() == 0); b.resize(2); b.set(0); b.reset(1); //NOTE, the different order! BOOST_CHECK(b.size() == 2); BOOST_CHECK(b.test(0) == true); //FAILS! BOOST_CHECK(b.test(1) == false);
PS. I've found a workaround which fixes the problem :-) For the curious... reset() is written as: v &= ~mask; The workaround is to do: v |= mask; v ^= mask; Instead for CW8. On to the next problem. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq