Fix usage of enable_if with GCC 8

Seems like the trick with the three dots isn't working
with GCC 8 anymore. So let's make it a default template
parameter then.

Not sure whether GCC 8 is here correct and whether this
workaround causes further trouble.
This commit is contained in:
Martchus 2018-05-07 23:53:01 +02:00
parent c54c4e0188
commit a7bdc00112
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ inline void printProperty(
}
}
template <typename NumberType, Traits::EnableIfAny<std::is_integral<NumberType>, std::is_floating_point<NumberType>>...>
template <typename NumberType, Traits::EnableIfAny<std::is_integral<NumberType>, std::is_floating_point<NumberType>>* = nullptr>
inline void printProperty(
const char *propName, const NumberType value, const char *suffix = nullptr, bool force = false, ApplicationUtilities::Indentation indentation = 4)
{