Skip to content

Commit

Permalink
Suppress a bogus warning in MSVC (#4023)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <[email protected]>
  • Loading branch information
phprus authored Jun 19, 2024
1 parent ac96773 commit 514b695
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions include/fmt/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
# if FMT_HAS_INCLUDE(<optional>)
# include <optional>
# endif
# if FMT_HAS_INCLUDE(<source_location>)
# include <source_location>
# endif
# 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>
Expand Down
2 changes: 1 addition & 1 deletion test/ranges-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <utility>
#include <vector>

#if FMT_HAS_INCLUDE(<ranges>)
#if FMT_CPLUSPLUS > 201703L && FMT_HAS_INCLUDE(<ranges>)
# include <ranges>
#endif

Expand Down

0 comments on commit 514b695

Please sign in to comment.