Skip to content

Expected Expression Error on convert() call #4

@NickAnthony

Description

@NickAnthony

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions