3 ms·
You can compromise by using abort in debug builds and std::unreachable in release builds.
by suyjuris 4y ago
You can compromise by using abort in debug builds and std::unreachable in release builds.
- apaprocki 4y agoThe point of this is that you can control that behavior at the compiler level using different flags instead of changing the code itself (via preprocessor defines).
- JonChesterfield 4y agoI love it when switching debug mode on changes the control flow graph of my program. Keeps life interesting.
- gpderetta 4y agowell, that's already the case.