I want to use 64 bit integers in my C++ code. I understand I can either #include <cstdint>
and then declare a uint64_t
or use unsigned long long
(or the equivalent for signed versions).
However, it appears that support for this was not added until C++11
and I would like my code to be compatible with compilers that don't have full C++11 support.
What is a good portable way to support 64 bit integers in C++?