This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: V3 PATCH: #undef some C99 math macros in <cmath>
- To: drepper at cygnus dot com (Ulrich Drepper)
- Subject: Re: V3 PATCH: #undef some C99 math macros in <cmath>
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 06 Apr 2001 04:27:05 +0200
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <Pine.SOL.3.91.1010405185653.28675B-100000@cse.cygnus.com> <m38zlewz2s.fsf@otr.mynet.cygnus.com>
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