This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with an overloaded cast operator
- To: Ryszard Kabatek <rumcajs at gmx dot net>
- Subject: Re: Problem with an overloaded cast operator
- From: Alexandre Oliva <aoliva at cygnus dot com>
- Date: 03 Apr 2000 08:26:59 -0300
- Cc: Alexandre Oliva <aoliva at cygnus dot com>, gcc at gcc dot gnu dot org
- Organization: Cygnus Solutions, a Red Hat Company
- References: <orem8n7bgn.fsf@zecarneiro.lsd.ic.unicamp.br> <11730.954761043@www6.gmx.net>
On Apr 3, 2000, Ryszard Kabatek <rumcajs@gmx.net> wrote:
> In my implementation the copy constructor is declared as private,
> but it is not implemented; f() cannot use it.
It does not use it. The compiler is allowed to optimize it away, as
long as it is accessible. Since f() is a friend, it is accessible.
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me