Removing private nonvirtual functions not called by inlines

If you refer to a function from an inline, and clients or derived classes call that inline, you can never remove the function or change it from virtual to nonvirtual
(or vice versa).

You can remove private functions that are not virtual if the implementation no longer references them. This includes references from inline functions.

You can remove virtual privates (or change to nonvirtual) if you did not specify in your documentation that they can be overridden.

You can change a private function from nonvirtual to virtual, but you must recompile all your own code that calls it.

[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