r/ProgrammerHumor • • Oct 12 '26

Meme stdModernizeMyCodebase

Post image
190 Upvotes

44 comments sorted by

View all comments

Show parent comment

1

u/cheapcheap1 Oct 14 '26

How is unique_ptr not a zero cost abstraction? Is this anything other than compilers making avoidable optimization errors that will get fixed with time?

3

u/Thecuriousserb Oct 14 '26

Long story short unless you turn off exceptions, the stack unwinding code fucks up assembly for hot loops