Boost logo

Boost Users :

Subject: Re: [Boost-users] [integer]/cstdint.hpp How to use portable literals?
From: Howard Hinnant (howard.hinnant_at_[hidden])
Date: 2009-12-09 09:25:49


On Dec 9, 2009, at 7:55 AM, John Maddock wrote:

>> I need to use boost::intmax_t literals in a portable way. I remember some discussion related to this subject, but I've not found the thread. Could >someone point me to these threads, or tell me how I can achieve this.
>>
>> I'm currently using the macro INTMAX_C, but it seems that this macro is not always defined.
>
> You need to ensure that __STDC_CONSTANT_MACROS is defined *before any headers are #included* in order to use that macro.

Fyi, this won't be conforming C++0x behavior:

http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#593

-Howard


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