This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]