V3 PATCH: #undef some C99 math macros in <cmath>
Gabriel Dos Reis
Gabriel.Dos-Reis@cmla.ens-cachan.fr
Thu Apr 5 19:27:00 GMT 2001
Ulrich Drepper <drepper@redhat.com> writes:
[...]
| > > + #undef fpclassify
| > > + #undef isfinite
| > > + #undef isinf
| > > + #undef isnan
| > > + #undef isnormal
| > > + #undef signbit
| > > +
| > > + #undef isgreater
| > > + #undef isgreaterequal
| > > + #undef isless
| > > + #undef islessequal
| > > + #undef islessgreater
| > > + #undef isunordered
| >
| > in the short term, this is acceptable.
|
| This is what you always will have to do. C99 demands that these are
| macros. You'll replace them with template functions after undefining
| the macros. There is not more correct way.
Where should we put those? In the global namespace or in the std::?
Strictly speaking, we're not allowed to put them in the global
namespace.
-- Gaby
More information about the Libstdc++
mailing list