|
Boost : |
Subject: Re: [boost] [move] Library uploaded to sandbox
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-02-21 20:26:49
vicente.botet a écrit :
> ----- Original Message -----
> From: "Mathias Gaunard" <mathias.gaunard_at_[hidden]>
> To: <boost_at_[hidden]>
> Sent: Saturday, February 21, 2009 9:28 PM
> Subject: Re: [boost] [move] Library uploaded to sandbox
>
>
>> vicente.botet wrote:
>>> [...]
>>> With this implicit conversion the
>>>
>>> Derived(BOOST_RV_REF(Derived) x) // Move ctor
>>> : Base(boost::move(static_cast<Base&>(x))),
>>> mem_(boost::move(x.mem_)) { }
>>>
>>> could be
>>>
>>> Derived(BOOST_RV_REF(Derived) x) // Move ctor
>>> : Base(x),
>>> mem_(boost::move(x.mem_)) { }
>>>
>>> What do you think?
>> I think that is not what rvalue references do.
>
> Do you mean that Derived&& is not convertible to Base&&?
Rvalue references with a name become lvalues references, I think.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk