Made variables constexpr

This commit is contained in:
BlackMark 2020-04-05 03:25:25 +02:00
parent 1bd49f65fa
commit f751833a88

View File

@ -39,8 +39,8 @@ static constexpr size_t maxNumDigits()
constexpr T minVal = util::NumericLimits<T>::min();
constexpr T maxVal = util::NumericLimits<T>::max();
T minDigits = cntDigits<T, minVal, Base>();
T maxDigits = cntDigits<T, maxVal, Base>();
constexpr T minDigits = cntDigits<T, MinVal, Base>();
constexpr T maxDigits = cntDigits<T, MaxVal, Base>();
return (minDigits < maxDigits) ? maxDigits : minDigits;
}