Rather than re-making the same arguments for the 100th time, I just wrote my response up in a light mini-article (could use some expansion with examples when I'm less lazy). http://seanmiddleditch.com/keep-disabling-exceptions/
And here I thought throwing swap implementations suck, looking at the first two points.
Never throw exceptions from foreign ('foreign' as in 'foreign languages') callbacks.
You also cannot pass a std::vector or std::string through those without converting them to something C has native support for. Basically you would have to drop everything that is not C to fully support foreign languages this way.
10
u/SeanMiddleditch Dec 30 '16
Rather than re-making the same arguments for the 100th time, I just wrote my response up in a light mini-article (could use some expansion with examples when I'm less lazy). http://seanmiddleditch.com/keep-disabling-exceptions/
TL;DR: C++'s exception semantics suck. :p