News for hackers. Stuff that matters.
Re:Current hardware trends make C++ exceptions harder to jus... by aeldidi on Tuesday February 22, 2022 @03:45PM (#30433498)
How 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.
Re:Current hardware trends make C++ exceptions harder to jus... by TheMonarchist on Tuesday February 22, 2022 @08:16PM (#30436304)
> 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.

Re:Current hardware trends make C++ exceptions harder to jus... by GnarfGnarf on Thursday February 24, 2022 @07:33AM (#30453929)
We use the STL. We have never observed an exception thrown.