Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is actually C and C++ has not done something similar AFAIK.





Fortunately the major compiler vendors all have. Routing around the standards committee is getting more and more common.

C++23 does have std::unreachable (as a function), and its counterpart [[assume(expr)]]



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: