Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You still need delete for some things.

Smart pointers are not a panacea.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: