Menu

How to define defaults for operation parameters using QM with qpcpp?

Ned Konz
2018-05-31
2018-05-31
  • Ned Konz

    Ned Konz - 2018-05-31

    I'd like to define an operation in QM with defaults provided for one or more of the last parameters.
    I've tried defining the defaults by adding them to the name of the parameter after an equals sign, like paramname = 0; this generates the correct declaration, but the generated definitions also include the defaults, which elicits a compiler complaint.

    Is this a generation bug or is there some other way to do this (other than defining several overloads for the operator with differing numbers of parameters)?

     
  • Quantum Leaps

    Quantum Leaps - 2018-05-31

    The default parameters in C++ function declarations are not yet supported in QM. Please file a feature request, if you like.
    --MMS

     

Log in to post a comment.