3 ms·
As the article states, they're doing different things. It's not a runtime check. The point of making it undefined behaviour is that it enables the programmer to
by MaxBarraclough 4y ago
As the article states, they're doing different things. It's not a runtime check. The point of making it undefined behaviour is that it enables the programmer to provide information to the compiler to enable better optimisation. The compiler is permitted to assume the programmer is correct about the path being unreachable, and may infer accordingly.