Op 20/01/2016 om 08:18 schreef Knoll Lars:
Where is this qAsConst coming from? When was it introduced? Where is it
documented?
I can't find it in my Qt documentation.
It just got added some weeks ago, after we realised that range-for would lead
to our containers detaching. So it'll be in 5.7.
In general, I'm very much in favour of getting rid of foreach in favour of
range-for.
Perhaps in the meantime the foreach macro could just be changed to
actually expand to a range-for?
André
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development