Fix MSVC warning: "The contents of <bit> are available only with C++20 or later." (#3807)

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov 2024-01-13 21:26:44 +05:00 committed by GitHub
parent 7c163acfda
commit df6a3564b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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