Skip to content

Commit 6da95c0

Browse files
committed
Remove __cpp_lib_filesystem check for <filesystem>
This project has long since targetted `c++17`, which includes `<filesystem>` as part of the standard. It has then been updated to target `c++20`. Further the `__cpp_lib_filesystem` macro is defined in `<version>` which is part of the `c++20` standard. That means we'd need to use a `c++20` feature to detect support for a `c++17` feature. Seems kind of pointless.
1 parent 63a888c commit 6da95c0

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

OP2Utility/src/XFile.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@
33
#include <cstddef>
44
#include <algorithm>
55

6-
#ifdef __cpp_lib_filesystem
76
#include <filesystem>
87
namespace fs = std::filesystem;
9-
#else
10-
#include <experimental/filesystem>
11-
namespace fs = std::experimental::filesystem;
12-
#endif
138

149
namespace OP2Utility::XFile
1510
{

0 commit comments

Comments
 (0)