This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Cool Idea.
BYE INGO
Am Montag, 26. September 2005 13:19 schrieb John Love-Jensen:
> Hi Tommy,
>
> In C++, every class some freebies. If you write this...
>
> class Foo
> {
> };
>
> ...the compiler generates this...
>
> class Foo
> {
> public:
> Foo();
> Foo(Foo const&);
> ~Foo();
> Foo& operator = (Foo const&);
> Foo* operator & ();
> Foo const* operator & () const;
> };
>
> (I presume the definitions of these methods are obvious.)
>
> If you don't want the compiler to generate one-or-more of those functions,
> you could explicitly declare them in a private section, and leave them
> unimplemented.
>
> HTH,
> --Eljay
Attachment:
pgp00000.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |