arg = xx;
Local arg now refers to (reads as binding to) xx . (And no longer applies to j )
arg += xx;
The implicit operator T& () is used to match the argument operator += and, therefore, the addition is performed on the mentioned object ie j .
Thus, the observed behavior is correct.
Mohit Jain May 09 '16 at 6:35 a.m. 2016-05-09 06:35
source share