Hacker News new | ask | show | jobs
by mgaunard 1 day ago
Any function can throw an exception unless it is marked noexcept.

Your code shouldn't need to make assumption about whether exception are being thrown or not.

Your mistake is thinking that a function potentially throwing means you need to catch it.