mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-26 20:20:04 +00:00
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:
parent
7c163acfda
commit
df6a3564b0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user