Quote:
Originally Posted by shabbir
In the above case you are using the = operator and that needs to be overloaded which should take care of creation of objects.
and also the + operator.
Quote:
Originally Posted by Aztec
The code which you have shown I would term it as an advantage of temporary objects.
Yes thats the main reason why we have temp objects after all.