This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: C++ operators in gcc
- From: Ingo Krabbe <ikrabbe dot ask at web dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 24 Sep 2005 11:03:34 +0200
- Subject: Re: C++ operators in gcc
- References: <200509232348.08931@gj-laptop>
Does this really make the binary file a bit larger. I don't think so. Every
class you define (or structure with C) is automatically be able to be copied
(in a flat manner of course) by the operator =. I think that someone who
told you meant that behaviour, that is part of the ISO definition as I
suppose and as such not specific to gcc.
I assume there would be no single byte of code blow up for this behaviour.
BYE INGO
Am Freitag, 23. September 2005 23:48 schrieb Tommy Vercetti:
> Hi list
>
> I was told that gcc by default, for every class creates operator =, and
> probably something else. This makes binary file bit larger than it suppose
> to be. Is it true, and if so, why this is the case ? Can gcc simply not
> generate that operator?
>
> please CC me on replies.