Skip to content
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 being used with c++11 #2316

Open
dimateos opened this issue Oct 26, 2023 · 0 comments
Open

std::filesystem being used with c++11 #2316

dimateos opened this issue Oct 26, 2023 · 0 comments

Comments

@dimateos
Copy link

The following define has a an OR that ignores the c++ version check, it even ignores the __has_include check

#if ( (! defined(__APPLE__)) && defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include(<filesystem>)) || defined( _MSC_VER )
#define GHC_USE_STD_FS
#include <filesystem>
namespace cinder {
namespace fs = std::filesystem;
}
#endif

probably there is no need to check for MSVC when __cplusplus is defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant