fix _MSC_VER version to check for std::filesystem

This commit is contained in:
Giovanni Cerretani 2022-01-03 10:02:33 +01:00
parent cc59ab122f
commit dd2a42ea66
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@
#endif #endif
// no filesystem support before MSVC 19.14: https://en.cppreference.com/w/cpp/compiler_support // no filesystem support before MSVC 19.14: https://en.cppreference.com/w/cpp/compiler_support
#if defined(_MSC_VER) && _MSC_VER < 1940 #if defined(_MSC_VER) && _MSC_VER < 1914
#undef JSON_HAS_FILESYSTEM #undef JSON_HAS_FILESYSTEM
#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
#endif #endif

View File

@ -2367,7 +2367,7 @@ using is_detected_convertible =
#endif #endif
// no filesystem support before MSVC 19.14: https://en.cppreference.com/w/cpp/compiler_support // no filesystem support before MSVC 19.14: https://en.cppreference.com/w/cpp/compiler_support
#if defined(_MSC_VER) && _MSC_VER < 1940 #if defined(_MSC_VER) && _MSC_VER < 1914
#undef JSON_HAS_FILESYSTEM #undef JSON_HAS_FILESYSTEM
#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
#endif #endif