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