From 43419a4adaaf7a720a5c51376ef776edd037383a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 19 Nov 2021 07:32:42 -0800 Subject: [PATCH] Workaround a bug in gcc --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index f9d9f683..0f15024c 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -905,7 +905,7 @@ constexpr const char* digits2(size_t value) { // Sign is a template parameter to workaround a bug in gcc 4.8. template constexpr Char sign(Sign s) { -#if !FMT_GCC_VERSION || FMT_GCC_VERSION > 408 +#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 604 static_assert(std::is_same::value, ""); #endif return static_cast("\0-+ "[s]);