by sb10128 · 9y ago · 0 comments
https://stackoverflow.com/questions/3310737/shared-ptr-by-re...
That said, if you are in need of the latter use case, it certainly should be passed by reference. It's not just a reference count! Shared pointers in C++ are threadsafe so there's a fair bit more going on under the hood that makes copying it (more) expensive.