This can be useful when the compiler claims C++17 support, but standard library std::filesystem implementation is unavailable (MinGW) or can't be used because the current macOS target is too low to allow it (#3156). See #3090.