gulrak / filesystem

An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD.
MIT License
1.31k stars 168 forks source link

Warning when compiling with Microsoft compiler #158

Closed albert-github closed 1 year ago

albert-github commented 1 year ago

With the Microsoft compiler (Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29914 for x64) we get the warning like:

warning C4127 conditional expression is constant

for: https://github.com/gulrak/filesystem/blob/cd6805e94dd5d6346be1b75a54cdc27787319dd2/include/ghc/filesystem.hpp#L2278

GXTX commented 1 year ago

Dupe of #147

albert-github commented 1 year ago

Closing as duplicate of #147