News for hackers. Stuff that matters.
Re:Transmission torrent client ported to C++ by qalmakka on Monday September 13, 2021 @04:47AM (#28509139)
The STL can throw exceptions, but it's easy to avoid that if you use the right patterns (i.e., find() instead of at(), iterators, and so on). If you build your C code as C++, exceptions will flow through it just fine. Nothing will throw anything unless call throw (or you run out of memory).
Re:Transmission torrent client ported to C++ by account42 on Tuesday September 14, 2021 @07:22AM (#28523023)
> If you build your C code as C++, exceptions will flow through it just fine.

Exceptions will propagate up the stack, but won't clean up resources since the C code expects to do that manually. Same is true for non-RAII C++ code that is not written to expect exceptions.

Your main point is correct though: Large parts of the C++ stdlib do not throw.