Boost logo

Boost :

Subject: Re: [boost] [filesystem] windows/posix inconsistencies.
From: Adam Merz (adammerz_at_[hidden])
Date: 2012-02-03 14:17:18


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


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