
3 Feb
2012
3 Feb
'12
7:17 p.m.
Olaf van der Spek <ml <at> vdspek.org> writes:
* Const return types inhibit move semantics.
Why's that?
Const-ness inhibits modifying an object, rvalue or not, and modifying the moved-from object is integral to move semantics. I.e., you can't move from a `T const&&` any more than you can move from a `T const&`. Regards