Skip to content

Commit

Permalink
Really fix MSVC warning about <bit> only being available in C++20.
Browse files Browse the repository at this point in the history
The warning states "The contents of <bit> are available only with C++20 or later.",
but the check was for C++17 and later.
  • Loading branch information
res2k committed Jan 30, 2024
1 parent 8e62172 commit 388d229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 388d229

Please sign in to comment.