[PATCH c++] Reduce -Weffc++ Rule 12 false positives
Mark Mitchell
mark@codesourcery.com
Tue Feb 7 21:44:00 GMT 2006
Dirk Mueller wrote:
> On Tuesday, 7. February 2006 22:33, Gabriel Dos Reis wrote:
>
>
>>I don't understand. Actually, we should be warning for those cases,
>>especially I don't understand this:
>
>
> Well, the point of the rule is that if you have member that is of class-type
It's been a long time since I've read the book, but to me the point of
the rule is that constructors are for initializing things, and leaving
things uninitialized is dangerous. Like many of the rules, experts
realize that there are exceptions. I don't think that the POD/non-POD
distinction isn't very pertinent here.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list