10-04-2014, 07:46 PM
You cannot put a default value for a parameter that is passed by a reference - because references mean that the function can change the value, and it cannot change the value of a constant.
Depending on what you want to do, you should either remove the reference from the last parameter (so the caller will pass in constants), or remove the default value (so the caller can receive values from the callee through this variable).
Depending on what you want to do, you should either remove the reference from the last parameter (so the caller will pass in constants), or remove the default value (so the caller can receive values from the callee through this variable).