HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by creato | Hacker News Reader
Parent
Full thread
creato
·
This is actually C and C++ has
not
done something similar AFAIK.
View on HN
Fulgen
·
https://en.cppreference.com/w/cpp/utility/unreachable.html
hn_go_brrrrr
·
Fortunately the major compiler vendors all have. Routing around the standards committee is getting more and more common.
TuxSH
·
C++23 does have std::unreachable (as a function), and its counterpart [[assume(expr)]]
Reply on news.ycombinator.com