The output file is opened in ResultTable.cpp is never closed. It works just because the destructor of the class forces the member ofs to be destroyed forcing the file to be closed. Additionally, because it's a singleton class, this happens in the program exit. This makes impossible to work with the file (if needed) within the same main.
The output file is opened in ResultTable.cpp is never closed. It works just because the destructor of the class forces the member ofs to be destroyed forcing the file to be closed. Additionally, because it's a singleton class, this happens in the program exit. This makes impossible to work with the file (if needed) within the same main.