Boost logo

Boost Users :

From: Aaron W. LaFramboise (aaronblue6_at_[hidden])
Date: 2004-01-12 12:45:52


Hi,

I noticed that boost/cstdint.h does not define int64_t when GCC is in
strict mode (-ansi or -std=c++98) on MinGW, Cygwin, and probably other
major platforms. This seems to be because boost/cstdint.h refuses to
define the type if ULLONG_MAX (or ULONG_LONG_MAX or ULONGLONG_MAX) is
not defined, even if BOOST_HAS_LONG_LONG is defined. GCC, quite
correctly, will not define these macros in strict mode.

However, the library still probably should be defining this type.
Ideally, there would be a GCC-specific work-around to prevent warnings
on the use of long long in strict mode.

In particular, I am using the date_time library which depends on
int64_t. It would be very unfortunate and a little silly if I could not
use date_time in GCC's strict mode.

How would it be best to fix this?

Aaron


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net