RationalFraction initialization fix

This commit is contained in:
myrrc 2020-10-22 18:53:45 +03:00
parent 3d479cdd8c
commit e4f35e27e1

View File

@ -17,8 +17,10 @@ using DecimalOrVectorCol = std::conditional_t<IsDecimalNumber<T>, ColumnDecimal<
template <class Numerator, class Denominator>
struct RationalFraction
{
Numerator numerator{0};
Denominator denominator{0};
/// {0} prohibited as excess elements.
/// = 0 prohibited as there are no suitable constructors.
Numerator numerator = static_cast<Numerator>(0);
Denominator denominator = static_cast<Denominator>(0);
/// Calculate the fraction as a #Result.
template <class Result>