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

#11: Do not create two shared_ptr from the same raw ptr! It creates two control blocks and reference counts.


That's #5.


Oh, I missed that one.


Should have used a unique_ptr. ducks




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

Search: