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++ 2010 solution files.
10 July 2010.
Added missing .vcxproj.filters file to the project.
13 June 2010.
Updated solution to Microsoft Visual Studio 2010.
2 February 2008.
Updated solution to Microsoft Visual Studio 2008.