Boost logo

Boost :

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
> resources

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
bar fails.

Boost list run by bdawes at, gregod at, cpdaniel at, john at