From c962bf7321890e8982d62b9cc6849ab0808591f9 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sat, 13 Jan 2024 00:45:41 +0500 Subject: [PATCH] Fix MSVC warning: "The contents of are available only with C++20 or later." 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