Why might using a "long long" in C or C++ be a bad thing?
I was compiling a runtime library the other day and in the code it checks to see if longs are 64bits and if not it uses a long long. But along with that, it sends out a #warning "using long long". I can't think of any reason for the "long long" being a warning unless it was leftover debug cruft from the developer.
Thanks Chenz
As far as I know, long long
is currently standard only in C99. It will also be a type in C++0x, but most modern compilers should support it already.
However, for fixed-sized integers one might use the C99 header <stdint.h>
, or in C++ <boost/cstdint.hpp>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With