mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-04 17:40:35 +00:00
Suppress a bogus warning in MSVC (#4023)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
parent
ac96773230
commit
514b6955d2
@ -35,9 +35,11 @@
|
|||||||
# if FMT_HAS_INCLUDE(<optional>)
|
# if FMT_HAS_INCLUDE(<optional>)
|
||||||
# include <optional>
|
# include <optional>
|
||||||
# endif
|
# endif
|
||||||
# if FMT_HAS_INCLUDE(<source_location>)
|
# endif
|
||||||
# include <source_location>
|
// Use > instead of >= in the version check because <source_location> may be
|
||||||
# endif
|
// 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
|
# endif
|
||||||
# if FMT_CPLUSPLUS > 202002L && FMT_HAS_INCLUDE(<expected>)
|
# if FMT_CPLUSPLUS > 202002L && FMT_HAS_INCLUDE(<expected>)
|
||||||
# include <expected>
|
# include <expected>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#if FMT_HAS_INCLUDE(<ranges>)
|
#if FMT_CPLUSPLUS > 201703L && FMT_HAS_INCLUDE(<ranges>)
|
||||||
# include <ranges>
|
# include <ranges>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user