
26 Mar
2005
26 Mar
'05
4:58 p.m.
On Sat, 26 Mar 2005 08:54:42 -0500, Beman Dawes wrote
Yes, but there are two ways around the problem. (1) Use long long. Almost all late-model C++ compilers already support long long, and the C++ committee is in process of adding it to the language. (2) Make it an implementation-defined type which must be able to hold the largest value the operating system supports. That means int or long is fine if sufficient for the platform. It also means that a type like __int64 could be used, or even long long itself.
Before long long is standard you can use boost::int64_t takes care of the portability issues of long long versus __int64 for all the platforms we are currently supporting. Jeff