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

You just described std::shared_ptr and std::weak_ptr. I recommend doing some more reading on the subject.


Thanks, I will! But it doesn't change what Blow said, and what I agreed with. It becomes ugly and takes more space than I need to. My class becomes weak_ptr and what I want to use becomes the template. You should also look into his talk about c++ and its weaknesses.




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: