Martin Vermeer wrote: > 2) BTW is it really true that pushing something to the > back of a <vector> (or other container), forcing a copy in memory to a > new location (?) will invalidate any iterators defined earlier to point > into it? This feels almost like assembly :-(
Yes, it's true. insert() and erase() invalidate all existing iterators into a std::vector. Why not try std::map<lyx::size_type, lyx::size_type> rowSignature; which I'd imagine will actually be easier to use than your vector in this regard and will remove the "implicit connection" that Lars is worried about. -- Angus