Const Refs vs. Raw Pointers: Fixing Shared Pointer Reads

Recently, I encountered a subtle performance issue while refactoring some C++ code. I was passing a std::shared_ptr by value into a funct...