Hacker News new | past | comments | ask | show | jobs | submit login

On libstdc++ std::unreachable() also reliably crashes if you define either _GLIBCXX_DEBUG or _GLIBCXX_ASSERTIONS. libc++ should have a similar macro. I expect MS STL to also reliably crash on debug builds here, as it's quite heavy on debug assertions in the standard library anyway by default (and debug and release builds are explicitly not ABI compatible there).



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

Search: