From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-03-08 11:57:30
Pavel Chikulaev wrote:
> "Jonathan Turkanis" <technews_at_[hidden]> wrote in message
>> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk