Boost logo

Boost Users :

Subject: Re: [Boost-users] [integer]/cstdint.hpp How to use portableliterals?
From: Kim Barrett (kab.conundrums_at_[hidden])
Date: 2009-12-10 17:42:42


On Dec 10, 2009, at 4:53 PM, Vicente Botet Escriba wrote:
> I don't see any problem in the above code. Just boost/cstdint.hpp need to
> define INTMAX_C even if not defined by the preceding inclusion of #include
> <something which includes stdint.h>.
>
> As Howard has been signaled, C++0x <cstdint> will define INTMAX_C
> independently of __STDC_CONSTANT_MACROS is defined or not.

Oops. I read John Maddock's ".. always define these macros..." as referring to the __STDC_CONSTANT_MACROS and __STDC_LIMIT_MACROS macros. Reading his suggestion more carefully now, I see that wasn't what he meant. I agree that defining INTMAX_C &etc unconditionally is a good idea.


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