delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/15/23:16:14

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++, complex, etc
Date: Mon, 15 May 2000 23:21:50 +0100
Organization: Customer of Planet Online
Lines: 14
Message-ID: <18t0is0nmf2ceu5btrqp5rb9cfmfg8kki5@4ax.com>
References: <391F1402 DOT 31B7D4A6 AT mtu-net DOT ru> <bqfuhso38mddrcom1noc240qjdj1fa4s5i AT 4ax DOT com> <391F4A04 DOT 176163E5 AT mtu-net DOT ru>
NNTP-Posting-Host: modem-90.sulfur.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 958429373 31454 62.136.15.90 (15 May 2000 22:22:53 GMT)
NNTP-Posting-Date: 15 May 2000 22:22:53 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru> wrote:

> Yours compiles. Do I always have to specify actual type of real and
> imaginary parts of a complex number that way, e.g. <float>/<double>/<long
> double>?

Yes, if you want your code to be standards compliant.

You could try using a typedef to fool Borland C++ into accepting code
using the STL complex type:

typedef std::complex<double> complex;

This is probably something to ask in a Borland support forum.

- Raw text -


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