Empty special members

If you have an abstract base class with no storage and no implementation, it's acceptable to make the special member functions explicitly empty in the class declaration, as shown in the last example (~TFoo() declared to be empty). If there are any data members or if there is significant implementation, don't do this. When in doubt, talk to an architect.


[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