Hacker News new | past | comments | ask | show | jobs | submit login

Forgive my ignorance, but doesn't std::unique_ptr communicate the same restriction, and therefore enable the same optimisations?



unique_ptr has unique ownership; it's not an error to use other pointers to the same data (just a bad idea).




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: