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.34k stars 173 forks source link

Warning when compiling with Microsoft compiler #157

Closed albert-github closed 1 year ago

albert-github commented 2 years ago

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

warning C4191 'operator': unsafe conversion from 'type_of_expression' to 'type_required'

for:

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

and https://github.com/gulrak/filesystem/blob/cd6805e94dd5d6346be1b75a54cdc27787319dd2/include/ghc/filesystem.hpp#L1983

gulrak commented 1 year ago

Released with v1.5.14.