From 274d10ed06d54d8c5c7b2a6072225e470c1e7c9f Mon Sep 17 00:00:00 2001 From: Oliver Lee Date: Sat, 9 Oct 2021 13:02:03 +0200 Subject: [PATCH] Include `` when using `std::bit_cast` --- include/fmt/format.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index 2bd5a26c525a..a45fc8cd8030 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -41,6 +41,10 @@ #include // std::system_error #include // std::swap +#ifdef __cpp_lib_bit_cast +#include // std::bitcast +#endif + #include "core.h" #if FMT_GCC_VERSION