Y
Hacker News
new
|
ask
|
show
|
jobs
by
funkychicken
489 days ago
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?
1 comments
saagarjha
489 days ago
I assume this is the example presented here:
https://youtu.be/rHIkrotSwcc?t=1050
link
funkychicken
489 days ago
Oh thanks! That’s really depressing though, I feel like my whole world view has been shattered lmao
link