delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/15/19:04:34

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++, complex, etc
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <r2u0isce9h78v31r504qmfshftc4our2n4@4ax.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000515184139 DOT 12234F-100000 AT is> <392043B8 DOT D36FF32F AT earthlink DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 29
X-Trace: /KDWjYo0q1CwNKo+0ImkriGICgLs+SkZfAKwtBYJPpx1q7cBIeEBx4WpsOLpVs8KkDeC78QbyLXB!zW6+PedJJvLkQacpZlByfCRqiqJMelY40QUBjbsAVvKAWSGPw7yuooEjnmYDp/lN5GF6/psOvqvt!+2pL8+k=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Mon, 15 May 2000 22:24:26 GMT
Distribution: world
Date: Mon, 15 May 2000 22:24:26 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Mon, 15 May 2000 18:36:10 GMT, Martin Ambuhl
<mambuhl AT earthlink DOT net> wrote:

>Eli Zaretskii 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.

Put this in your header:

#ifdef /* insert whatever Borland identifies itself as */
typedef complex komplex;
#else
typedef complex<double> komplex;
#endif

Then just use `komplex' for your complex numbers.

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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