Using smart pointers doesn’t eliminate the memory safety issue, it merely addresses one aspect of it. Even with smart pointers, nothing is preventing you from passing references and using them after they’re freed.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: