delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/16/12:34:57

Message-ID: <39216BF9.BBBC58F8@earthlink.net>
From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Organization: Nocturnal Aviation
X-Mailer: Mozilla 4.73 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++, complex, etc
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000516143426 DOT 24814G-100000 AT is>
Lines: 33
Date: Tue, 16 May 2000 15:39:42 GMT
NNTP-Posting-Host: 63.23.128.6
X-Complaints-To: abuse AT earthlink DOT net
X-Trace: newsread1.prod.itd.earthlink.net 958491582 63.23.128.6 (Tue, 16 May 2000 08:39:42 PDT)
NNTP-Posting-Date: Tue, 16 May 2000 08:39:42 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


Eli Zaretskii wrote:
> 
> On Mon, 15 May 2000, Martin Ambuhl wrote:
> 
> > > Can someone who knows please tell whether double_complex etc. types are
> > > standard C++?
> >
> > They are not.  The standard library does provide specializations for
> > complex<float>, complex<double>, and complex<long double>, but these do not
> > include any aliasing typedefs.
> 
> So what is the standard C++ complex type?  How do I declare a complex
> variable in a way that any standard-complying C++ compiler should
> support?

See my paragraph above.  There are three examples of complex<T> named in it. 
There is no more a single standard complex type than there is a single
standard floating type (but float, double, long double) or a single integer
type (but [signed|unsigned] char, short int, long int, int).


-- 
Martin Ambuhl	mambuhl AT earthlink DOT net

What one knows is, in youth, of little moment; they know enough who
know how to learn. - Henry Adams

A thick skin is a gift from God. - Konrad Adenauer
__________________________________________________________
Fight spam now!
Get your free anti-spam service: http://www.brightmail.com

- Raw text -


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