News for hackers. Stuff that matters.
Re:Three new utility functions in C++23 by suyjuris on Wednesday November 09, 2022 @07:54AM (#33530854)
You can compromise by using abort in debug builds and std::unreachable in release builds.
Re:Three new utility functions in C++23 by JonChesterfield on Wednesday November 09, 2022 @08:09AM (#33531036)
I love it when switching debug mode on changes the control flow graph of my program. Keeps life interesting.
Re:Three new utility functions in C++23 by gpderetta on Wednesday November 09, 2022 @08:56AM (#33531631)
well, that's already the case.
Re:Three new utility functions in C++23 by apaprocki on Wednesday November 09, 2022 @08:09AM (#33531032)
The 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).