r/cpp • • Jul 29 '26

C++26: Reducing undefined behaviour

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

48 comments sorted by

View all comments

Show parent comment

2

u/_Noreturn Jul 30 '26

stl hardening is just debug mode... it is nothing new

1

u/pjmlp Jul 30 '26

Agreed, already available on C++ frameworks during the 1990's, so it was a bummer it wasn't officially defined in C++98.

Having it part of the ISO C++ standard is a big deal, especially for domains where ticking certain security boxes matters, and also as a way to make all compilers agree in how to go about it.