4 ms·
You still need delete for some things.
Smart pointers are not a panacea.
You still need delete for some things.
Smart pointers are not a panacea.
Sorry I meant to ask why is it a habitual thing.
The only common exceptions for smart pointer usage should be for interfacing with an awkward C library or the OS, in which case you'd typically be using specific memory allocation functions, not new/delete.