[v3] c++0x std::ratio implementation

Chris Fairles chris.fairles@gmail.com
Fri Jul 4 14:16:00 GMT 2008


On Fri, Jul 4, 2008 at 9:18 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
>
>> Updated patch.
>
> Thanks. I'm looking into it. Note that, currently at least, we cannot assume <cstdint> to be non-trivial on all the platforms supported by GCC, that is, std::intmax_t may well be unavailable. The code and the tests require guards...

With something like __GLIBCXX_HAS_STDINT_H? Or, even if stdint.h is
defined, its still not guaranteed to have intmax_t? But if it doesn't,
won't including cstdint give a compiler error (due to "using
::intmax_t)?

Can we assume that if INTMAX_MAX is defined, then intmax_t is available?

>
> Paolo.
>
>



More information about the Libstdc++ mailing list