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

This is also a common, and sometimes exploitable, coding error with C++ smart pointers.

I agree with you: I'm not sure how this is any more powerful than any encapsulated ADT-style foo_t-wraps-a-void-star C library.



Well with C++ unique_ptr and shared_ptr you cant ++ or += or even get a raw pointer without explicitly calling .get().




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: