r/cpp • • Jul 29 '26

C++26: Reducing undefined behaviour

https://www.sandordargo.com/blog/2026/07/29/cpp26-reduces-undefined-behaviour
88 Upvotes

48 comments sorted by

View all comments

Show parent comment

2

u/TheThiefMaster C++latest fanatic (and game dev) Jul 30 '26

This is why the current talk is on bounds checks that can be optimised out. This one can - the size is known, as is the range of a char, so it's easily determined to be superflous and removed.