
26 May
2006
26 May
'06
10:15 a.m.
Gerhard Wesp <gwesp@google.com> wrote:
This would violate Item 32 in Effective C++, 3rd ed. by Scott Meyers: Make sure public inheritance models "is-a". I suggest deriving from integer be disallowed in the TR2 proposal.
I second that. If the class has not been designed from the ground up (virtual functions, interface classes etc.) to allow sensible inheritance, it should be disallowed. I think that all STL classes follow that rule. B.