Really fix MSVC warning about <bit> only being available in C++20.

The warning states "The contents of <bit> are available only with C++20 or later.",
but the check was for C++17 and later.
This commit is contained in:
Frank Richter 2024-01-30 13:25:52 +01:00
parent 8e62172ab6
commit 388d229e8a

View File

@ -54,7 +54,7 @@
#include "base.h"
// Checking FMT_CPLUSPLUS for warning suppression in MSVC.
#if FMT_HAS_INCLUDE(<bit>) && FMT_CPLUSPLUS >= 201703L
#if FMT_HAS_INCLUDE(<bit>) && FMT_CPLUSPLUS >= 202002L
# include <bit> // std::bit_cast
#endif