-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std::filesystem header detected on macOS Mojave but not supported #150
Comments
Wait, if I'm not mistaken, it lacks the implementation of Hmm, the only idea I have is to detect |
As jwillikers pointed out in #150, there is a case where compiler defines the corresponding feature test macro of <filesystem> but is actually not available. The macro is a way to disable the feature regardless of the status of feature test macro.
I'm verry sorry for the late reply.
I'm sorry for the possibly-incomplete solution, but I think it is better to add a way to avoid the problem compared to nothing, so I added |
Ah nice. That sounds good to me too. Wanted to investigate if I could lower the macOS deployment target again, especially because in my use case the actual file IO is done on the other side of the library fence. |
The check for the
std::filesystem
header is not robust enough for older versions of macOS.Versions of macOS up to Mojave may have the
std::filesystem
header while not having support forstd::filesystem
implemented in Apple's version of the standard C++ library.This leads to a compiler error.
In particular, I am using MacPorts Clang 11 on macOS Mojave and version 3.6.0 of toml11.
The text was updated successfully, but these errors were encountered: