guys i got a small problem,
my program to crashes with athe following code causes it at the second statement:Code:std::overflow_error
no crash if i use the decimal value instead :Code:#include <bitset> int main() { bitset<64> x( string("0000000000000000000000000000010001101000011001010110110001101100") ) ; unsigned long y = x.to_ulong() ; getchar() ; return 0 ; }
it doesn't make sense to me. could anyone explain?Code:bitset<64> x( 18931346540 ) ;
thanks,
sym