FixedPoint
FixedPoint copied to clipboard
Expected Expression Error on convert() call
Had this error for a while.
Had to change convert method call from:
// Convert both operands to result type
ResultType op1(this->convert<INT_BITS_RES, FRAC_BITS_RES>());
ResultType op2(value.convert<INT_BITS_RES, FRAC_BITS_RES>());
To:
// Convert both operands to result type
ResultType op1(this->template convert<INT_BITS_RES, FRAC_BITS_RES>());
ResultType op2(value.template convert<INT_BITS_RES, FRAC_BITS_RES>());