Subject: Re: [boost] [filesystem] windows/posix inconsistencies.
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2012-01-31 11:33:08
Den 31-01-2012 14:47, Stephan T. Lavavej skrev:
> [Thorsten Ottosen]
>> However, consider
> * Replace string with wstring, and this becomes problematic on Windows.
> * Additionally, returning const values like const string/const wstring inhibits move semantics.
True, but on the specific platform it would be faster to get a refence
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk