This was a fairly common position when I was programming C++ over a decade ago.
Performance critical code like game engines, etc used to avoid exceptions like the plague. Not entirely surprised to find that’s still the case.
Performance critical code like game engines, etc used to avoid exceptions like the plague. Not entirely surprised to find that’s still the case.
How? As long as RAII is used it's basically for free.
I believe that those idioms are useful and great even for non-exceptional code, but that's another story.