mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-05 02:55:21 +00:00
Workaround a bug in gcc
This commit is contained in:
parent
c089f7d497
commit
43419a4ada
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user