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

Paolo Carlini paolo.carlini@oracle.com
Fri Jul 4 14:22:00 GMT 2008


Hi,

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

We already have _GLIBCXX_USE_C99_STDINT_TR1, we have only to use it, consistently, to wrap both code using <cstdint> (the header itself can be included unconditionally) and the corresponding testcases.

If you can do that, + the small stylistic changes and resubmit we can commit very soon...

Paolo.



More information about the Libstdc++ mailing list