Class templates that inherit from specialized classes

You can use this technique with public inheritance from a templatized base class. If you do so, don't mix an implementation class into any of the public base class. Defer all the implementation to the derived classes to avoid the diamond inheritance problem. See "Be aware of problems with virtual bases" on page 45.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker