Comment on The missing C++ smart pointerparentComments−rightbyte3yUsing pointers to the stack?−maattddOP3yPointers to stack sound like a recipe for disaster (all those pointers will be dangling very very soon).−softwaredoug3yI’d argue it’s safer to have the paradigm of “i own stuff then delegate it you” (ie down the stack) then the non hierarchy chaos the heap invites
Comments
Using pointers to the stack?
Pointers to stack sound like a recipe for disaster (all those pointers will be dangling very very soon).
I’d argue it’s safer to have the paradigm of “i own stuff then delegate it you” (ie down the stack) then the non hierarchy chaos the heap invites