On 2016-01-16 00:07, Kevin Kofler wrote: > I suspect we would lose at least some optimizations from > Q_DECLARE_TYPEINFO
C++ desperately needs something like this. There was talk a while back about destructive moves, but I don't believe it ever materialized into a proposal. I'd rather see the good parts of Qt containers being pushed to STL (maybe as part of STL2) than just being lost. > The iterators are only problematic when you keep an iterator across an > assignment I also feel like I fixed this - not in an actual Qt container, but in my own container that also had CoW - once upon a time, though it requires that the iterators not be "just pointers". (IIRC the iterator is able to detect that a detach occurred, and must reseat itself on first subsequent access. So it's "safe", but not exactly efficient.) -- Matthew _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development