Y
Hacker News
new
|
ask
|
show
|
jobs
by
YesBox
195 days ago
C++ keeps getting bigger and bigger :D
Thanks for sharing
1 comments
creato
194 days ago
This is actually C and C++ has
not
done something similar AFAIK.
link
Fulgen
194 days ago
https://en.cppreference.com/w/cpp/utility/unreachable.html
link
hn_go_brrrrr
194 days ago
Fortunately the major compiler vendors all have. Routing around the standards committee is getting more and more common.
link
TuxSH
194 days ago
C++23 does have std::unreachable (as a function), and its counterpart [[assume(expr)]]
link