Hi.
I'm a bit confused with how I should be removing objects from TRefArray.
If I do
array.RemoveAt(i); // i is definitely <= array.GetLast()
it leaves a hole, and array.GetLast() is not changed unless i == array.GeLast() prior to removal. So, I end up doing this: if (i != array.GetLast()) array.AddAt(array.At(array.GetLast()), i); array.RemoveAt(array.GetLast());
which looks very clumsy.
I'm using ROOT 5.10/00 on Fedora Core 3.
Thanks,
Andre.
Received on Fri Jul 14 2006 - 20:23:58 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET