From -7965708601218664408
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,e1300df19f14dad5
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1994-06-15 14:23:21 PST
Newsgroups: comp.std.c++
Path: nntp.gmd.de!Germany.EU.net!EU.net!uunet!majipoor.cygnus.com!news!jason
From: jason@cygnus.com (Jason Merrill)
Subject: Re: Is this a valid conversion operator?
In-Reply-To: bglenden@colobus.cv.nrao.edu's message of Wed, 15 Jun 1994 15:18:35 GMT
Content-Type: text/plain; charset=US-ASCII
Message-ID: <JASON.94Jun15133003@deneb.cygnus.com>
Sender: news@cygnus.com
Nntp-Posting-Host: deneb.cygnus.com
Organization: Cygnus Support, Mountain View, CA
References: <BGLENDEN.94Jun15111836@colobus.cv.nrao.edu>
Mime-Version: 1.0
Date: Wed, 15 Jun 1994 20:30:03 GMT
Lines: 17

>>>>> Brian Glendenning <bglenden@colobus.cv.nrao.edu> writes:

> "test1.cc", line 8: Error: Cannot define a conversion from complex<float> to complex<float>.

> As far as I can tell, the ARM doesn't disallow this, but I might be
> missing something. Who's right?

As far as I can tell, the WP doesn't disallow that, but it also will never
call the conversion operator automatically:

				 A conversion operator is never used  to  |
  convert  a  (possibly qualified) object (or reference to an object) to  |
  the (possibly qualified) same object type (or a reference to  it),  or  |
  to  a  (possibly qualified) base class of that type (or a reference to  |
  it).

Jason


