From 388d229e8ac6458e14cbcf22579802ba71c6102d Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Tue, 30 Jan 2024 13:25:52 +0100 Subject: [PATCH] Really fix MSVC warning about only being available in C++20. The warning states "The contents of are available only with C++20 or later.", but the check was for C++17 and later. --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index f118057e..6e4b6100 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -54,7 +54,7 @@ #include "base.h" // Checking FMT_CPLUSPLUS for warning suppression in MSVC. -#if FMT_HAS_INCLUDE() && FMT_CPLUSPLUS >= 201703L +#if FMT_HAS_INCLUDE() && FMT_CPLUSPLUS >= 202002L # include // std::bit_cast #endif