Of common problems with shared pointers
There’s one repeating pattern in all C++ code bases I’ve worked with.
shared_ptr is abused - one way or another. There are many reasons, sometimes people just start
with shared_ptr instead of unique_ptr out of laziness, sometimes it’s the
sole, default smart pointer they rely on. Often, it’s a result of many passes
of refactoring and eventual quality degradation with time. This leads to all
sorts of problems but there’s are definitely some repeating patterns.
