Suppress a bogus warning in MSVC (#4023)

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov 2024-06-19 20:49:43 +05:00 committed by GitHub
parent ac96773230
commit 514b6955d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -35,9 +35,11 @@
# if FMT_HAS_INCLUDE(<optional>)
# include <optional>
# endif
# if FMT_HAS_INCLUDE(<source_location>)
# include <source_location>
# endif
// Use > instead of >= in the version check because <source_location> may be
// available after C++17 but before C++20 is marked as implemented.
# if FMT_CPLUSPLUS > 201703L && FMT_HAS_INCLUDE(<source_location>)
# include <source_location>
# endif
# if FMT_CPLUSPLUS > 202002L && FMT_HAS_INCLUDE(<expected>)
# include <expected>

View File

@ -17,7 +17,7 @@
#include <utility>
#include <vector>
#if FMT_HAS_INCLUDE(<ranges>)
#if FMT_CPLUSPLUS > 201703L && FMT_HAS_INCLUDE(<ranges>)
# include <ranges>
#endif