This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ISO C++ and C99 features


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]