Comment on Real cost of C++ exception vs error-code checkingparentComments−adrianN15yYou can't prevent exceptions when you do IO or dynamically allocate memory.
Comments
You can't prevent exceptions when you do IO or dynamically allocate memory.