Skip to content

Commit 015b092

Browse files
committed
[FIX] : fix the compilation of the std::filesystem
1 parent b981280 commit 015b092

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ImGuiFileDialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ class FileSystemStd : public IGFD::IFileSystem {
438438
return false; // this is not a directory!
439439
}
440440
bool IsFileExist(const std::string& vName) override {
441+
namespace fs = std::filesystem;
441442
return fs::is_regular_file(vName);
442443
}
443444
bool CreateDirectoryIfNotExist(const std::string& vName) override {

ImGuiFileDialog.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,6 +1628,7 @@ class IGFD_API FileInfos {
16281628

16291629
class IFileSystem {
16301630
public:
1631+
virtual ~IFileSystem() = default;
16311632
// say if a directory can be openened or for any reason locked
16321633
virtual bool IsDirectoryCanBeOpened(const std::string& vName) = 0;
16331634
// say if a directory exist

0 commit comments

Comments
 (0)