This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mutually-recursive types and an old puzzle
- From: David Carlton <david dot carlton at sun dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: Joe Buck <Joe dot Buck at synopsys dot COM>, Zack Weinberg <zack at codesourcery dot com>, Chris Lattner <sabre at nondot dot org>, gcc at gcc dot gnu dot org
- Date: Thu, 01 Jul 2004 10:11:19 -0700
- Subject: Re: mutually-recursive types and an old puzzle
- References: <Pine.LNX.4.44.0406291930070.1537-100000@nondot.org><"32877.::ffff:128.194.146.36.1088556186.squirrel"@webmail.nerim.net><20040629175356.A11677@synopsys.com><"32929.::ffff:128.194.146.36.1088557164.squirrel"@webmail.nerim.net><20040630122238.A23557@synopsys.com><877jtox2ef.fsf@taltos.codesourcery.com><"32822.::ffff:24.250.169.187.1088649121.squirrel"@webmail.nerim.net><20040701091139.A20201@synopsys.com> <40E44326.30807@codesourcery.com>
On Thu, 01 Jul 2004 18:00:22 +0100, Nathan Sidwell <nathan@codesourcery.com> said:
> The problem with C++ is that if you declare *any* constructor, you
> have to declare the copy constructor (if you want one)
No. Declaring any constructor prevents the default constructor from
being automatically defined, but not the copy constructor.
David Carlton
david.carlton@sun.com