This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: temporary auto_ptr
- From: John Love-Jensen <eljay at adobe dot com>
- To: Dima Sorkin <dima dot sorkin at gmail dot com>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 29 Sep 2005 07:24:34 -0500
- Subject: Re: temporary auto_ptr
Hi Dima,
> And it does not matter that there is an implicit conversion possible
> between auto_ptr<const B>& and auto_ptr<const A> ?
> (unless I explicitly state I want to do it, as in "f1" )
If there is a *single* implicit conversion possible, then I think you'll get
that implicit conversion.
If there are *multiple* implicit conversions possible, then the compiler
will indicate an ambiguous implicit conversion situation.
HTH,
--Eljay