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

Thiago Macieira thiago.macieira at intel.com
Wed Oct 31 16:30:28 CET 2018


On Wednesday, 31 October 2018 03:35:32 PDT Giuseppe D'Angelo via Development 
wrote:
> > 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.

C++17 required (and I didn't know this specific syntax worked).

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Development mailing list