|
Boost : |
From: Bronek Kozicki (brok_at_[hidden])
Date: 2006-05-26 06:15:32
Gerhard Wesp <gwesp_at_[hidden]> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk