Skip to content

Commit

Permalink
Workaround a bug in gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Nov 19, 2021
1 parent c089f7d commit 43419a4
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 @@ -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]);
Expand Down

0 comments on commit 43419a4

Please sign in to comment.