[setup] Why does PackageSpecification haveaprivatecopy-constructor? (Robert?)

Robert Collins rbcollins@cygwin.com
Wed Sep 1 00:29:00 GMT 2004


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20040901/f7d835b2/attachment.sig>


More information about the Cygwin-apps mailing list