top | item 30435303

(no title)

TheMonarchist | 4 years ago

https://en.cppreference.com/w/cpp/io/basic_ios/exceptions

discuss

order

YATA0|4 years ago

That is manually throwing an exception if the file doesn't exist.

C++ stdlib does not throw an exception if a file does not exist. I agree with this philosophy because files not existing isn't an exceptional case.

jcelerier|4 years ago

Damn, in all those years I've absolutely never come across this, thanks