
29 Nov
2009
29 Nov
'09
2:17 p.m.
John Maddock wrote:
I'm having a load of trouble getting Boost.Integer to play nice with the Borland/Codegear compilers, for example given:
void print_val(long long l) { std::cout << std::hex << static_cast<int>((l & 0xFFFFFFFF00000000LL) >> 32);
I've no idea whether this matters or not, but the constant 0xFFFFFFFF00000000 does not fit in long long. I think that you need an ull suffix for it... or leave the suffix out. You could also try static_cast<unsigned> instead of int.