[Bug c++/16166] -Weffc++ finer granularity
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Apr 27 12:19:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16166
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #3)
> > # Item 11: Define a copy constructor and an assignment operator for classes with
> > dynamically allocated memory.
>
> Replaced by Item 14: "Think carefully about copying behavior in
> resource-managing classes" - the advice is less specific, but more useful.
> I'm not sure how to turn it into a warning though!
I think this could be replaced by a new warning for PR 58407
More information about the Gcc-bugs
mailing list