r/cpp • u/pavel_v • Jul 29 '26
C++26: Reducing undefined behaviour
https://www.sandordargo.com/blog/2026/07/29/cpp26-reduces-undefined-behaviour
89
Upvotes
r/cpp • u/pavel_v • Jul 29 '26
View all comments
Show parent comment
6
u/qoning Jul 29 '26
Classic "zero cost abstraction" misunderstanding in the wild. In this case, you are using the bounds check, so it's a zero cost abstraction either way.