Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

9.7 Guard Classes Without Templates

If your compiler doesn't support templates, or your application can't use them, applying the guard class becomes more difficult, but not impossible. You must provide a class that can be locked for each object. For instance, to support RWDBConnection, you must provide the following class:

This class can be used like the previous template version. Compare that code with the next example:


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.