Boost logo

Boost :

From: Pavol Droba (droba_at_[hidden])
Date: 2004-08-06 01:54:52


Hi,

There is one problem with cw8 in the string algo lib.
Can you please have a look?

http://tinyurl.com/4qe8k

Thanks a lot.

Pavol.

On Fri, Aug 06, 2004 at 01:05:05AM -0500, Rene Rivera wrote:
> 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
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost


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