| Smart Pointer.
This is an intrusive reference counting smart pointer template class. This smart pointer class only works with objects derived from the Referable abstract class. Both the SmartPtr template class and the Referable abstract base class are defined in the SmartPtr.h header file. Sample usage and test cases are included in the main.cpp file.
This smart pointer implementation is based on ideas presented in Andrei Alexandrescu's "Modern C++ Design" and Scott Meyers' "More Effective C++".
Download source, and Visual C++ 2008 solution files.
Change History:
2 February 2008.
Updated solution to Microsoft Visual Studio 2008. |