Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
funkychicken
· 1y ago · 0 comments
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?
Comments
[–]
saagarjha
1y ago
I assume this is the example presented here:
https://youtu.be/rHIkrotSwcc?t=1050
[–]
funkychicken
OP
1y ago
Oh thanks! That’s really depressing though, I feel like my whole world view has been shattered lmao