Skip to content

Comment on The missing C++ smart pointerparent

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.