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.
|
// Sign is a template parameter to workaround a bug in gcc 4.8.
|
||||||
template <typename Char, typename Sign> constexpr Char sign(Sign s) {
|
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, "");
|
static_assert(std::is_same<Sign, sign_t>::value, "");
|
||||||
#endif
|
#endif
|
||||||
return static_cast<Char>("\0-+ "[s]);
|
return static_cast<Char>("\0-+ "[s]);
|
||||||
|
Loading…
Reference in New Issue
Block a user