From df6a3564b0035dd3d0a8ceebd924201e9a1f24a6 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sat, 13 Jan 2024 21:26:44 +0500 Subject: [PATCH] Fix MSVC warning: "The contents of are available only with C++20 or later." (#3807) Signed-off-by: Vladislav Shchapov --- include/fmt/format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 599fe231..6ffba5dd 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -49,7 +49,8 @@ #include "base.h" -#if FMT_HAS_INCLUDE() +// Checking FMT_CPLUSPLUS for warning suppression in MSVC. +#if FMT_HAS_INCLUDE() && FMT_CPLUSPLUS >= 201703L # include // std::bit_cast #endif