2 ms·
This is actually C and C++ has not done something similar AFAIK.
by creato 10mo ago
This is actually C and C++ has not done something similar AFAIK.
- hn_go_brrrrr 10mo agoFortunately the major compiler vendors all have. Routing around the standards committee is getting more and more common.
- Fulgen 10mo agohttps://en.cppreference.com/w/cpp/utility/unreachable.html https://en.cppreference.com/w/cpp/utility/unreachable.html
- TuxSH 10mo agoC++23 does have std::unreachable (as a function), and its counterpart [[assume(expr)]]