Discussion about this post

User's avatar
Neural Foundry's avatar

The ownership semantics stuff is what makes smart pointers actually usable rather than just another abstraction layer. Seen too many codebases where shared_ptr gets used as default because nobody wants to think about lifteimes, then you end up debugging reference cycles at 3am. unique_ptr should be the starting point, escalate only when actually needed.

deb's avatar

didn’t lose mind.

mind blown instead 🤯

No posts

Ready for more?