. , ( ++) (). () . () , .
This happened to me once and caused a serious mistake that was difficult to track and had real consequences. Therefore, do not pass references to objects unless you are sure that the function may have the effect of destroying the reference object!
push_back creates a new link to the object.
source
share