If "this" is a pure pointer, and passing it as a parameter to other objects then shared_ptr<> would lose track of the actual references this pointer has.
this would create two actual shared_ptr<> objects tracking separately the same object (which would be VERY dengerous)...
so, how would be the proper way to use the actual shared_ptr<> that is handling "this" object?
Thanks!
"lots of shoulddas, coulddas, woulddas in the air, thinking about things they shouldda couldda wouldda donne, however all those shoulddas coulddas woulddas ran away when they saw the little did to come"
Derive [font=courier new,courier,monospace]CNode[/font] from [font=courier new,courier,monospace]enable_shared_from_this[/font], do [font=courier new,courier,monospace]pChild->OnAttach(shared_from_this());[/font]
"lots of shoulddas, coulddas, woulddas in the air, thinking about things they shouldda couldda wouldda donne, however all those shoulddas coulddas woulddas ran away when they saw the little did to come"