Hi > > It has nothing to do with templated base classes. You shouldn't > > inherit from STL classes as they don't have virtual destructors. > > That is, of course, if you would ever delete the object through its base > class pointer. You may also consider private inheritance as well, which is > not dangerous with non-virtual base class dtors. > > > If you feel the need, stop and use aggregation instead. > > Also keep private inheritance in mind, which may be more (syntactically) > convenient than aggregation in some cases.
All true, but private in heritance is normally an indication of actually wanting a has-a relationship. Syntactic convenience is just another way of saying "can't be bothered to do it properly". :-) Also, inheritance should be avoided to minimize coupling (specifically compile dependency). Regards Paul Paul Grenyer Email: [EMAIL PROTECTED] Web: http://www.paulgrenyer.co.uk Have you met Aeryn: http://www.paulgrenyer.co.uk/aeryn/? Version 0.3.0 beta now ready for download
