26 Nov
2004
26 Nov
'04
12:28 a.m.
On Thu, 25 Nov 2004, Jon A. Cruz wrote:
I'd say, rather, that a good rule of thumb is 'Always give a class a private copy constructor and operator ='.
In those cases where it's actually appropriate, then you can do exceptions to that rule.
Hmmm... or a slightly modified version could be
'Always give a class an explicit copy constructor and operator =, making them private unless you have good reason not to'
Perhaps that could be something to attack post-release?
Go for it. I don't think there's too many C++ classes right now so should be a manageable task. It'll also establish good examples for future C++ code. I've been doing this with the new Gtkmm code so those should already be okay.
Bryce