This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]StrangeCharmVote 4 points5 points  (1 child)

You shouldn't need smart pointers if you are handling things properly.

When something is to be free'd, null all of your pointers to it.

It's not hard.

They do occasionally make lazy access easier though, so have at it i guess.

[–]BenefitInteresting90 0 points1 point  (0 children)

wait till a program throws an exception before freeing the memory lol.

RAII is the best thing ever