Hacker News new | ask | show | jobs
by robododo 4234 days ago
You still need delete for some things.

Smart pointers are not a panacea.

2 comments

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.
Sorry I meant to ask why is it a habitual thing.