Skip to content

Commit

Permalink
Fix MSVC warning: "The contents of <bit> are available only with C++2…
Browse files Browse the repository at this point in the history
…0 or later." (#3807)

Signed-off-by: Vladislav Shchapov <[email protected]>
  • Loading branch information
phprus authored Jan 13, 2024
1 parent 7c163ac commit df6a356
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit df6a356

Please sign in to comment.