
10 Dec
2009
10 Dec
'09
10:42 p.m.
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.