C++ needs undefined behavior, but maybe less
The C++ standard does not specify all behavior. Some things are up to the implementation, while other operations are completely undefined, and the compiler is free to do whatever it wants. This is essential for some optimizations but can also be dangerous. The newly proposed erroneous behavior addresses it, but it cannot be used to eliminate all undefined behavior.
…
Read this blog post at think-cell's developer blog. Subscribe there to stay up-to-date!