Hi,

On Tue, Feb 24, 2015 at 08:13:56AM +0100, Stephan Bergmann wrote:
> Rather than allowing to move out of the temporary pair, better avoid
> its creation in the first place:
> 
>            for(auto const & aEntry : vInit)

Eh, true. But actually, I wanted both: Iterating over the pairs in the
initializer list by reference and still using the move-ctor from there. 

> That use of std::move is actually a pessimization, as it prevents RVO.

How so? The RVO would be to do the ::std::move(). So this is just making that
(needlessly) explicit, isnt it? At least that is what I read from

 
http://stackoverflow.com/questions/17473753/c11-return-value-optimization-or-move

Best,

Bjoern
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to