Dear ROOTers,
I'm wondering what would be an effect of replacing the following 2 lines in
TClonesArray::operator[]
if (!fKeep->fCont[idx])
fKeep->fCont[idx] = (TObject*)::operator new(fClass->Size());
with
if (!fKeep->fCont[idx]) fKeep->fCont[idx] = fClass::New();
?
The reason for asking is that right now after [supposedly] allowed assignment
TClonesArray array("TMyClass",100)
TObject* x;
x = array[i];
I'm having problems with calling virtual functions of `x' - its
virtual table is not (and can not be) defined by the `::operator new()'.
thanks, Pasha
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:44 MET