mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02: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:
committed by
GitHub
parent
7c163acfda
commit
df6a3564b0
@@ -49,7 +49,8 @@
|
|||||||
|
|
||||||
#include "base.h"
|
#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
|
# include <bit> // std::bit_cast
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user