Workaround a bug in gcc

This commit is contained in:
Victor Zverovich 2021-11-19 07:32:42 -08:00
parent c089f7d497
commit 43419a4ada

View File

@ -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 <typename Char, typename Sign> 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<Sign, sign_t>::value, "");
#endif
return static_cast<Char>("\0-+ "[s]);