mirror of
https://github.com/fmtlib/fmt.git
synced 2024-09-15 15:13:22 +00:00
Really fix MSVC warning about <bit> only being available in C++20. (#3832)
* 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. * Change <bit> inclusion check per https://github.com/fmtlib/fmt/pull/3832#discussion_r1471144867
This commit is contained in:
parent
8e62172ab6
commit
71a4a8d479
@ -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 > 201703L
|
||||
# include <bit> // std::bit_cast
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user