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)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)?
The default parameters in C++ function declarations are not yet supported in QM. Please file a feature request, if you like.
--MMS