Why we should use the &obj specification for declaration of the operator function?let's use the myObj* | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we should use the &obj specification for declaration of the operator function?let's use the myObj*

16th Feb 2016, 12:53 PM
Emanuel Lozitsky
Emanuel Lozitsky - avatar
1 Answer
+ 1
I think you're confusing passing by reference with pointer address. it's the same symbol for both, which is &
4th Apr 2016, 2:55 PM
Son