Boost logo

Boost :

Subject: Re: [boost] Improving the assignment operators of various Boosttypes
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-09-11 13:48:52


Giovanni Piero Deretta skrev:
> On Thu, Sep 11, 2008 at 11:06 AM, Thorsten Ottosen
> <thorsten.ottosen_at_[hidden]> wrote:

>> I think the best way (= most RVOs) to write the assignment operator is to
>> take the T argument by value.
>>
>
> Uh? I do not understand how your statement relates to the code above.
> The point of destructive_copy is to move out of lvalues (by
> 'converting' them to rvalues), not optimizing out copies of rvalues.

Oh. I thought this was a new thread about the assignment operator. It
appeared as a new thread in my news reader.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk