??? copy constructor of TObjArray

From: Valeriy Onuchin (onuchin@emcal06.rhic.bnl.gov)
Date: Sat Feb 20 1999 - 21:19:46 MET


Hi!
I have a problem with copy constructor of TObjArray

see example bellow:

a1 = new TObjArray();
qq1 = new TNamed("qq1");
a1->Add(qq1);
qq2 = new TNamed("qq2");
a1->Add(qq2);

a2 = new TObjArray(*a);
a2->ls()
OBJ: TNamed     qq1      : 0
OBJ: TNamed     qq2      : 0

// looks good, but 

a2->GetEntriesFast()
(Int_t)0

a2->GetLast()
(Int_t)(-1)


So, a2 is not empty, but it seems that the  method
 TObjArray::GetAbsLast()  doesn't work correctly for a2

  With best regards,			Valery



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET