This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: V3 PATCH: #undef some C99 math macros in <cmath>
Ulrich Drepper <drepper@redhat.com> writes:
| Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr> writes:
|
| > 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.
|
| You'll have to face it: the C++ people screwed up big time by not
| looking forward to C99 and in advance making decisions about the
| extensions. Sooner or later all the definitions will be in std:: and
| the sooner this is done the better. I really would prefer not to see
| a namespace isoc99::. But if you think it is necessary allow some
| mode where std:: includes isoc99::.
I do not have any strong feeling but std::isoc99:: seems a good idea.
Later, we could bring them into std::.
The question is to come up with solutions which makes us comply to the
standard and at the same time not being out-of-date with respect to
C99.
-- Gaby