3 ms·
The code smell here is the use of shared_ptr. Yes, there are times when it's the least bad option, but using a shared_ptr is the C++ equivalent of throwing you
by cgrealy 7y ago
The code smell here is the use of shared_ptr.
Yes, there are times when it's the least bad option, but using a shared_ptr is the C++ equivalent of throwing your hands up and going "screw it, I have no idea who's supposed to own this".