When should I use raw pointers over smart pointers?
No, it’s not true. If a function needs a pointer and has nothing to do with ownership, then I strongly believe that a regular pointer should be passed for the following reasons: No ownership, therefore you don’t know what kind of a smart pointer to pass If you pass a specific pointer, like shared_ptr, then … Read more