On Wednesday, 31 October 2018 08:52:10 PDT Philippe wrote: > Hence best is: > > for (auto &element : std::as_const(container)) Which is why we added qAsConst. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center