Problem with an overloaded cast operator
Alexandre Oliva
aoliva@cygnus.com
Mon Apr 3 04:27:00 GMT 2000
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
More information about the Gcc
mailing list