rvalues -> ref (yup... again!)
Manu
turkeyman at gmail.com
Sat Mar 24 00:53:04 UTC 2018
On 23 March 2018 at 17:48, MattCoder via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> Question:
>
> In C++ the signature of the function which will receive the references like
> in this case, need to be "const ref" parameters, right? - If yes, then since
> it's const ref parameter, will not change the value passed, even if it's
> lvalue, right?
Right. It's so obvious isn't it ;)
More information about the Digitalmars-d
mailing list