Skip to content

Commit

Permalink
Really fix MSVC warning about <bit> only being available in C++20. (f…
Browse files Browse the repository at this point in the history
…mtlib#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 fmtlib#3832 (comment)
  • Loading branch information
res2k authored and happymonkey1 committed Apr 6, 2024
1 parent 0ed17f7 commit 4c30733
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 > 201703L
# include <bit> // std::bit_cast
#endif

Expand Down

0 comments on commit 4c30733

Please sign in to comment.