GarageGames/Torque3D — pull request #51 by Luis-Anton (2012-10-03 14:13:11+00:00)
Title: Torque Smart ptr: Shared, Weak & Scoped

This pull include smart pointers in 3 files without external dependencies(No STD/No BOOST):
*[ScopedPtr](https://github.com/Luis-Anton/Torque3D/tree/smart_ptr/Engine/source/core/util/tScopedPtr.h)
*[SharedPtr](https://github.com/Luis-Anton/Torque3D/tree/smart_ptr/Engine/source/core/util/tSharedPtr.h)
*[WeakPtr](https://github.com/Luis-Anton/Torque3D/tree/smart_ptr/Engine/source/core/util/tWeakPtr.h)

All are based on Boost smart pointer with very similar interface ( [see Boost documentation](http://www.boost.org/doc/libs/1_51_0/libs/smart_ptr/smart_ptr.htm) )

Simple test unit and example on: https://github.com/Luis-Anton/Torque3D/tree/smart_ptr/Engine/source/unit/tests/test_smart_ptr_basic.cpp

NOTE: Only tested on Windows7/VS2010. Code need to be cleaned. NOT THREAD-SAFE.