[Development] qMoveToConst helper for rvalue references to movable Qt containers?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Oct 31 11:35:32 CET 2018


Il 31/10/18 11:17, Philippe ha scritto:
> and for the rvalue reference case:
> 
> for (const auto &c = container; auto &element : c)

Why not using this one for *both* lvalues and rvalues? Once more, one 
fewer thing to teach.

Cheers,

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20181031/deca5106/attachment.bin>


More information about the Development mailing list