But I didn't cheat. I wanted to write a custom allocator for my class, so I did.
(Obviously in a more complete example I would also write operator delete).
I didn't bend any rules.
Yeap, I think inheritance is great! If you ask jsmith aka boost-boy (you'll understand why in time...) he'll tell you that maybe I decided to learn c++ just because it supports this feature :D
Actually, if you ask a colleague of mine (to whom I owe mostly every I know about C++),
he'll say that inheritance never delivered the promised of object-oriented programming.
It is true that you have to write a lot of forwarding functions, assuming your object has
the same interface as the underlying container. That may or may not be the best design.
But anyway, yes, it is typing. The good part is that it is code that can hardly be written
incorrectly. If writing bug-free code were as simple as writing more code, I'd do it in a
heartbeat.