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

You mentioned that std::unique_ptr had a runtime cost (versus a raw pointer). I had always assumed the compiler would optimize any of that away (if you have the default deleter). Could you explain what you meant?


I assume this is the example presented here: https://youtu.be/rHIkrotSwcc?t=1050


Oh thanks! That’s really depressing though, I feel like my whole world view has been shattered lmao




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

Search: