On Fri, Nov 01, 2002 at 05:03:28PM +0000, Angus Leeming wrote:
> I won't do that because I'm not at all sure that this code is safe if it
> receives
> size = (size_type)-1;
> Should you not add a test that size is valid? What should you do if it
> isn't?
Are we still talking about
erase(i);
insert(i, ar);
mathcursor->adjust(i, ar.size() - 1);
?
If the anchor/cursor is valid before, it will be valid after, wouldn't it?
And if the the anchor/cursor is not valid before we have a different
problem and we should better crash soon instead of "working around".
Andre'
--
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)