Subject: Re: [boost] rvalue ref best practices?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-06-12 10:51:45
On 06/11/2012 09:21 PM, Ion GaztaÃ±aga wrote:
> If it's going to be assigned, I want to reuse a's
And that's the problem. Reusing those resources is destructive, so if
your function fails before it returns the new value, the old value is lost.
It is not natural for something written as foo = bar(); to change foo if
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk