News for hackers. Stuff that matters.
Re:The C++ standard for the F-35 Fighter Jet [video] by elteto on Sunday December 07, 2025 @07:29PM (#46186937)
So you can’t use them then.
Re:The C++ standard for the F-35 Fighter Jet [video] by _flux on Monday December 08, 2025 @01:45AM (#46189176)
I don't think it would be typical to depend on exception handling when dealing with boundary conditions with C++ containers.

I mean .at is great and all, but it's really for the benefit of eliminating undefined behavior and if the program just terminates then you've achieved this. I've seen decoders that just catch the std::out_of_range or even std::exception to handle the remaining bugs in the logic, though.

Re:The C++ standard for the F-35 Fighter Jet [video] by account42 on Tuesday December 09, 2025 @06:00AM (#46203535)
Of course you can, you just need to check your preconditions and limit sizes ahead of time - but you need to do that with exceptions too because modern operating systems overcommit instead of failing allocations and the OOM killer is not going to give you an exception to handle.