Boost logo

Boost :

Subject: Re: [boost] [filesystem] windows/posix inconsistencies.
From: Beman Dawes (bdawes_at_[hidden])
Date: 2012-02-02 09:42:57


On Thu, Feb 2, 2012 at 9:30 AM, Michel Morin <mimomorin_at_[hidden]> wrote:
> Beman Dawes wrote:
>> On Tue, Jan 31, 2012 at 11:33 AM, Thorsten Ottosen
>> <thorsten.ottosen_at_[hidden]> wrote:
>>> I guess with the new & (I don't know of any compilers that have implemented
>>> it yet) feature we could have these overloads in path:
>>>
>>> const string& string() const;
>>> string        string() const &&;
>>>
>>> so when a temporary path object is returned from path::extension(), the
>>> second overload is selected.
>>
>> Interesting! I'm clueless about that use of &&. Need to do some reading.
>
> Clang 2.9 and 3.0 have this feature (rvalue references for *this).

Thanks! That makes it practical to consider rvalue references for
*this use in the interface.

--Beman


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