Mail Archives: djgpp/1996/09/06/21:23:08
Gurunandan R Bhat wrote:
> [snip]
> this has always worked for me, though i must confess i have never had
> occasion to port this kind of code to other platforms. in a recent (three
> weeks ago?) posting (weiqi?) it was mentioned that this is now obsolete
> and is moreover not quite ansi. the reason had to do with templates etc,
> something that, i, with almost no deep knowledge of c++, did not
> understand.
>
> i would be grateful then, if some one could post the canonical syntax for
> the above sketchy code which is ansi conformant and as portable as possible
The revised syntax is in version 2.01 of the FAQ, in section 8.11. I will
quote from it a brief passage with instructions...
----------- cut here --------------
[...] Instead of
`class Complex' there is now a *template* `class complex<double>', and
`Complex' is now a typedef which uses that template class. Look into the
headers `lang/cxx/_complex.h' and `lang/cxx/std/complext.h' and you will see
that change. [...]
----------- cut here --------------
John <fighteer AT cs DOT com>
--
Anything that happens, happens.
Anything that, in happening, causes something else to happen, causes
something else to happen.
Anything that, in happening, causes itself to happen again, happens again.
It doesn't necessarily do it in chronological order, though.
--- Douglas Adams
- Raw text -