This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin 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: [setup] Why does PackageSpecificationhaveaprivatecopy-constructor? (Robert?)


On Tue, 2004-08-31 at 23:42 +0100, Max Bowsher wrote:

> Unless we add explicit copy-constructors to every single class, I'd rather 
> just leave it out and let the compiler handle things implicitly? It seems 
> cleaner to me.

I think you'll find every class that has a destructor also has an
explicit copy constructor & assignment operator. That class certainly
has an explicit assignment operator... being explicit on the copy
constructor is consistent.

Have you heard of the 'rule of 3' ?

Rob

Attachment: signature.asc
Description: This is a digitally signed message part


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