I'm stumped as to why this code won't compile:
Code:
#include <bitset>
int main () {
std::bitset<8> b;
return 0;
}
I get a whole slew of errors from gcc (2.95.2)
Code:
\JFEAND~1\PROGS\bitset.cpp: In instantiation of `bitset<8,long unsigned int>':
\JFEAND~1\PROGS\bitset.cpp:3: instantiated from here
\JFEAND~1\PROGS\bitset.cpp:3: `CHAR_BIT' was not declared in this scope
\JFEAND~1\PROGS\bitset.cpp:3: `CHAR_BIT' was not declared in this scope
\JFEAND~1\PROGS\bitset.cpp:3: template argument 1 is invalid
..\lib\gcc-lib\i386-mingw32\2.95.2\..\..\..\..\include\bitset:541: `CHAR_BIT' was not declared in this scope
..\lib\gcc-lib\i386-mingw32\2.95.2\..\..\..\..\include\bitset:541: `CHAR_BIT' was not declared in this scope
..\lib\gcc-lib\i386-mingw32\2.95.2\..\..\..\..\include\bitset:541: template argument 1 is invalid
and so on...
any ideas?