From 4c30733f73cd30ff4b2e6dd3471718eb7a777e6e Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Tue, 30 Jan 2024 19:42:35 +0100 Subject: [PATCH] Really fix MSVC warning about only being available in C++20. (#3832) * 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. * Change inclusion check per https://github.com/fmtlib/fmt/pull/3832#discussion_r1471144867 --- 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 f118057ebaca..ef63f43bf06a 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 > 201703L # include // std::bit_cast #endif