This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ISO C++ and C99 features
- To: llewelly at dbritsch dot dsl dot xmission dot com
- Subject: Re: ISO C++ and C99 features
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Mon, 19 Jun 2000 09:15:28 +0200
- CC: nathan at codesourcery dot com, gcc at gcc dot gnu dot org
- References: <Pine.LNX.4.21.0006181616450.11454-100000@dbritsch.dsl.xmission.com>
> <iostream> contains std::clog.
>
> I do not have a copy of the C99 standard, but I seem to remember
> c99 <complex.h> contains a clog() function (for complex
> logarithms). Is this a problem?
Yes, it is a problem - but not exactly one of the compiler, though:
clog would be provided by the C library.
There is a related compiler problem: complex is a #define for _Complex
in C99, provided by <complex.h> was included. That is in conflict with
<complex>, where complex is a template name. One may think this is
similar to stdbool.h, which would just not #define bool when compiled
as C++, but this is different: I don't think there is a way to allow
both
double complex x;
and
complex<double> y;
to be used simultaneously.
If there is any "official" opinion on the subject, like what the C++
committee thinks about <ccomplex>, I'd love to know.
Regards,
Martin