You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fs.h doesn't implement a destructor.
It would be nice I guess to have a destructor which calls the close() function, since it is not useful to keep the file open if the File object gets out of scope.
A forgotten call to close() seem to introduce at least a memory leak somewhere, but maybe also other issues I cannot think of yet.
So is it a good idea to add a (virtual) destructor for fs::File ?