[Development] Proposal: Deprecating platforms in Qt 5.6 that don't support lambda

Daniel Teske Daniel.Teske at theqtcompany.com
Thu Feb 19 17:32:11 CET 2015


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



More information about the Development mailing list