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