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

> because even though assert terminates the program, the C++ compiler cannot see that

I think it should be able to. I'm pretty sure assert is defined to call abort when triggered and abort is tagged with [[noreturn]], so the compiler knows control flow isn't coming back.

 help



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

Search: