
22 Feb
2009
22 Feb
'09
1:26 a.m.
vicente.botet a écrit :
----- Original Message ----- From: "Mathias Gaunard" <mathias.gaunard@ens-lyon.org> To: <boost@lists.boost.org> 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.