Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-08-06 01:05:05


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk