unique_ptr vs shared_ptr: The Hard Way I Learned When to Use What
Introduction
Last Tuesday, I spent four hours debugging what I was convinced was a race condition. My multi-threaded file processing application was crashing intermittently, and the stack traces pointed to memory corruption. I added logging everywher...
recursionblog.hashnode.dev10 min read