Thiago Macieira wrote: > foreach copies; ranged for doesn't. … unless you try to use it on a non-const Qt container with usage count >1, then it will even deep-copy (detach) it! (I know you know this, but you should warn people about it.) So you need to be very careful about what you pass to ranged for.
Kevin Kofler
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development
