www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/06/21:23:08

Xref: news2.mv.net comp.os.msdos.djgpp:8373
From: "John M. Aldrich" <fighteer AT cs DOT com>
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: <Pine DOT LNX DOT 3 DOT 91 DOT 960906232526 DOT 718A-100000 AT aditya DOT unigoa DOT ernet DOT in>
NNTP-Posting-Host: ppp203.cs.com
Mime-Version: 1.0
To: Gurunandan R Bhat <grbhat AT unigoa DOT ernet DOT in>
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<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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019