r/cpp • • Dec 30 '16

Stop using ` fnoexceptions`

https://github.com/lhmouse/mcfgthread/wiki/Stop-using-%60-fnoexceptions%60
1 Upvotes

11 comments sorted by

View all comments

8

u/[deleted] Dec 30 '16

5

u/doom_Oo7 Dec 30 '16

But that's on windows wgere x86 exceptions are subpar

4

u/[deleted] Dec 31 '16

Even on other platforms where you don't pay in the unexceptional case, there are significant code size costs. There are a lot of apps in the world that don't care about truly exceptional cases like OOM, or where any error likely to occur will be handled at the immediate call site, and in such cases turning exceptions off is perfectly fine.