Undefined means explicitly unreliable. Software should be reliable. You shouldn’t have to say much else.
A frozen pond is a good example of an undefined walking surface. Just because you make it across once doesn’t mean you should add the shortcut to your paper route, especially if you’re planning for the four seasons.
More Related Contents:
- Undefined behavior and sequence points
- What are all the common undefined behaviours that a C++ programmer should know about? [closed]
- Accessing inactive union member and undefined behavior?
- When does invoking a member function on a null instance result in undefined behavior?
- Optimizing away a “while(1);” in C++0x
- Does initialization entail lvalue-to-rvalue conversion? Is `int x = x;` UB?
- Is `reinterpret_cast`ing between hardware SIMD vector pointer and the corresponding type an undefined behavior?
- What’s a proper way of type-punning a float to an int and vice-versa?
- Does “Undefined Behavior” really permit *anything* to happen? [duplicate]
- How could pairing new[] with delete possibly lead to memory leak only?
- Where exactly does C++ standard say dereferencing an uninitialized pointer is undefined behavior?
- Is passing a C++ object into its own constructor legal?
- Why is it undefined behavior to delete[] an array of derived objects via a base pointer?
- Are multiple mutations within initializer lists undefined behavior?
- A C++ implementation that detects undefined behavior?
- Why does the enhanced GCC 6 optimizer break practical C++ code?
- Why is it that we can write outside of bounds in C?
- Why is f(i = -1, i = -1) undefined behavior?
- Does “undefined behaviour” extend to compile-time?
- Is infinite loop still undefined behavior in C++ if it calls shared library?
- Why is locking a std::mutex twice ‘Undefined Behaviour’?
- What is a dangling reference? [duplicate]
- Mixing class and struct
- Is there a platform or situation where dereferencing (but not using) a null pointer to make a null reference will behave badly?
- Is it allowed to cast away const on a const-defined object as long as it is not actually modified?
- Ramifications of C++20 requiring two’s complement
- Can branches with undefined behavior be assumed unreachable and optimized as dead code?
- How disastrous is integer overflow in C++?
- behavior of const_cast in C++ [duplicate]
- reinterpret_cast from object to first member