Jean-Marc Lasgouttes a écrit :
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> Hello, Two files with this mail:
Abdelrazak> RandomAccessList.h: renamed and cleaned up version of
Abdelrazak> former it_vector.h ParagraphListRewrite.patch: updated
Abdelrazak> with the above.
Abdelrazak> I think that I took into account most if not all issues
Abdelrazak> pointed by Lars and Angus. I have tested this pretty
Abdelrazak> extensively.
That looks very good, Abdel.
Thanks. :-)
An idea for testing: would i be possible
to add temporarily to the at() method a test that the paragraph
returned by the vector is the same as what would be obtained from the
list (by std::advance, I guess)? This would help to make sure the
vector and the list are always in sync.
With current class, insertion/deletion are always done at the same time
so this simply could not happen. And the fact that the inner vector and
list are private member, prevents any false manipulation. But when/if we
do the optimisation for multiple insertion/deletion this would be useful
indeed. I'll add this test next week-end.
Abdel.