$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-03-08 11:57:30
Pavel Chikulaev wrote:
> "Jonathan Turkanis" <technews_at_[hidden]> wrote in message
> news:d0iedi$sgf$1_at_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