Xref: news2.mv.net comp.os.msdos.djgpp:8373 From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: complex Date: Fri, 06 Sep 1996 18:52:31 -0700 Organization: Three pounds of chaos and a pinch of salt Lines: 33 Message-ID: <3230D55F.469B@cs.com> References: NNTP-Posting-Host: ppp203.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Gurunandan R Bhat DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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', 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 -- 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