diff options
Diffstat (limited to 'src/common/fs/file.h')
| -rw-r--r-- | src/common/fs/file.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 2e2396075d..246c3db5d6 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h @@ -183,18 +183,18 @@ public: FileType type = FileType::BinaryFile, FileShareFlag flag = FileShareFlag::ShareReadOnly); -#ifdef _WIN32 - template <typename Path> - void Open(const Path& path, FileAccessMode mode, FileType type = FileType::BinaryFile, - FileShareFlag flag = FileShareFlag::ShareReadOnly) { - using ValueType = typename Path::value_type; - if constexpr (IsChar<ValueType>) { - Open(ToU8String(path), mode, type, flag); - } else { - Open(std::filesystem::path{path}, mode, type, flag); - } - } -#endif +// #ifdef _WIN32 +// template <typename Path> +// void Open(const Path& path, FileAccessMode mode, FileType type = FileType::BinaryFile, +// FileShareFlag flag = FileShareFlag::ShareReadOnly) { +// using ValueType = typename Path::value_type; +// if constexpr (IsChar<ValueType>) { +// Open(ToU8String(path), mode, type, flag); +// } else { +// Open(std::filesystem::path{path}, mode, type, flag); +// } +// } +// #endif /// Closes the file if it is opened. void Close(); |
