Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
creato
· 11mo ago · 0 comments
This is actually C and C++ has
not
done something similar AFAIK.
Comments
[–]
Fulgen
11mo ago
https://en.cppreference.com/w/cpp/utility/unreachable.html
[–]
hn_go_brrrrr
11mo ago
Fortunately the major compiler vendors all have. Routing around the standards committee is getting more and more common.
[–]
TuxSH
11mo ago
C++23 does have std::unreachable (as a function), and its counterpart [[assume(expr)]]