
8 Mar
2005
8 Mar
'05
4:57 p.m.
Pavel Chikulaev wrote:
"Jonathan Turkanis" <technews@kangaroologic.com> wrote in message news:d0iedi$sgf$1@sea.gmane.org...
I think Gennadiy is including temporaries that can result if you return an expression from a function, i.e., the kind of temporaries that can often be eliminated with move semantics.
Even with lazy functions (or custom operations) there is no temporaries at all.
I'm talking about performing a calculation in the body of a function and then returning the result. Unless a form of the return value optimization applies, you may have a temporary object. Jonathan