4 ms·
I manage 1.2MLOC C++ developed over 25 years. I am pleased to say we never had to use exceptions. Just check the return value.
by GnarfGnarf 5y ago
I manage 1.2MLOC C++ developed over 25 years. I am pleased to say we never had to use exceptions. Just check the return value.
- aeldidi 5y agoHow do you guys handle using other libraries? Everything I can see uses stuff like std::vector and the like at API boundaries, and I'm not aware of a way to construct an std::vector without throwing an exception.
- GnarfGnarf 5y agoWe use the STL. We have never observed an exception thrown.
- TheMonarchist 5y ago> I'm not aware of a way to construct an std::vector without throwing an exception. You use an allocator with enough pool for whatever you need to do and avoid out of bounds access.