3 ms·
Various folks working on C++ tooling at Google and e.g. Abseil have commented in talks—no, the standard library is not required to support exceptions. They are
by klodolph 7y ago
Various folks working on C++ tooling at Google and e.g. Abseil have commented in talks—no, the standard library is not required to support exceptions. They are in fact disabled. Code which would throw an exception instead aborts the program.
- saagarjha 7y agoAh, I see that Microsoft's implementation does allow this. I wonder if you could still call that standards compliant?
- klodolph 7y agoThe C++ requires exceptions, so with -fno-exceptions, the compiler is not standards compliant. However, the big companies like Apple, Facebook, and Google simply don’t care about standards compliance in their internal C++ code bases. At least, not as an end goal. There are a lot of good talks about this.