3 ms·
Not using them is insufficient, they should be disabled at compile time. IMHO, of course.
by boring_twenties 7y ago
Not using them is insufficient, they should be disabled at compile time. IMHO, of course.
- kevin_thibedeau 7y agoNow what happens when new or STL throws something?
- thedance 7y agoWhen you disable exceptions anything that throws calls std::terminate instead. It's actually great.
- pansa2 7y agoIs this automatic, or do you need to set it up somehow? `set_new_handler`?
- thedance 7y agoThe standard doesn't give advice about how to break features of the standard, so disabling exceptions is a non-standard feature of the implementation. If you're planning to disable exceptions you'd better read the docs that come with your compiler.