12 ms·
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
by YATA0 5y 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.