bug in libstdc++ bitset
Andrew Pinski
pinskia@physics.uc.edu
Mon Aug 19 06:30:00 GMT 2002
After changing it to let it compile under 3.x,
#include <bitset>
#include <iostream>
using namespace std;
int main() {
bitset <33> b;
b.set(32);
cout << b << ' ' << b.count() << ' ' << b.none() << '\n';
}
With the current cvs, it compiles fine and outputs:
100000000000000000000000000000000 1 0
which looks to be the right answer.
Thanks,
Andrew Pinski
On Monday, August 19, 2002, at 09:05 , Ed Parcell wrote:
More information about the Gcc
mailing list