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

You’d rather debug malloc/free than try to find and eliminate shared_ptr cycles? You really think that’s easier? Besides, you shouldn’t be using shared_ptr much at all, and should try to use unique_ptr everywhere.


Yup. Most of the debug CRTs contain fantastic malloc/free debugging and pointer overwrite tools.

FWIW I don't consider unique_ptr a smart pointer, that's just RAII in action.




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

Search: