This is the mail archive of the gcc@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]

Re: mutually-recursive types and an old puzzle


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]