3 ms·
Not a Googler, but I believe that exceptions coming from the standard library (which must support exceptions, of course…) are allowed.
by saagarjha 7y ago
Not a Googler, but I believe that exceptions coming from the standard library (which must support exceptions, of course…) are allowed.
- klodolph 7y agoVarious 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.