I wrote a test class, but I do not understand what is happening!
Is moving / copying sent? if so, how can it be updated with a new value. I'm definitely missing something.
here is a test case (please do not consider utility)
here the MST line is what I do not understand. if I initialize it with a temporary Test object, if it does not call the Move constructor (or at least a copy)?
output:
unary 102
similar output with this line
Test b = gi(Test(103));
here moving / copying doesn't happen during gi () call?
but it is as i expect
Test a = 99; Test b = gi(a);
What am I missing here?
source share