On 2015-05-14 10:58, Thiago Macieira wrote: > On Thursday 14 May 2015 14:36:43 Olivier Goffart wrote: >> I'm afraid your solution is not working with temporaries containers. > > That should be submitted as a change request to the standard. There are a > couple of other cases where this bites people. > > It needs a new paper.
Can you (both) please elaborate? That's... interesting. I'm taking a copy of the container and taking iterators from the copy. It seems to me that the RHS expression in a range-based for should most definitely not go out of scope within the for. Is that not the case? (Does range-based for just not work on temporaries at all?) -- Matthew _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development