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

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Oct 31 16:54:48 CET 2018


Il 31/10/18 16:52, Philippe ha scritto:
> AFAIR, this is in fact a C++20 proposal.

Yes, it is (only if / switch got the optional initializer in C++17).

Anyhow, nothing special about this:
1) can just do the same in pre-C++2a in two lines
2) not using C++-latest costs more :-)

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/1f3f0b06/attachment.bin>


More information about the Development mailing list