|
Boost : |
Subject: Re: [boost] [proto] RValue reference support?
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2011-08-11 14:25:04
On Thu, Aug 11, 2011 at 3:11 PM, Eric Niebler <eric_at_[hidden]> wrote:
> On 8/11/2011 10:50 AM, John Maddock wrote:
[snip]
>> Now imagine that one of the variables isn't a variable at all, but a
>> temporary, lets say the result of a (non-protoized) function call:
>>
>> a = x * y + foo() * z
If proto supported rvalue references then a could reuse foo()'s temporary
resources and maybe avoid dynamic allocation for a.
[snip]
> --
> Eric Niebler
> BoostPro Computing
> http://www.boostpro.com
Regards,
-- Felipe Magno de Almeida
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk