On Thursday 19 Feb 2015 08:26:29 Thiago Macieira wrote: > On Thursday 19 February 2015 13:29:48 Daniel Teske wrote: > > [1] ranged based for uses std::begin(container), which if not overloaded > > calls container.begin(), which detaches. > > > > So using range-based can be used: > > - If the container is const or > > - If the container is unshared or > > - To actually change the container's contents > > Sounds like the intended behaviour to me. What's wrong with this picture?
You don't want to detach if you are only reading. daniel _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development