FixedPoint icon indicating copy to clipboard operation
FixedPoint copied to clipboard

Expected Expression Error on convert() call

Open NickAnthony opened this issue 9 years ago • 0 comments

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>());

NickAnthony avatar Jul 07 '16 13:07 NickAnthony