TArrayI

Hello,

does anybody know if there is a reason why TArray (and all TArray*) classes don’t inherit from TObject. I was trying to fill TObjArray with TArray objects and I got error which made me realize that TArray is not in TObject inheritance tree.

regards
michal

Hi,
the reason is to avoid a diamond inheritance, e.g. for TH1I, which derives both from TObject and TArrayI. Use an STL container such as std::vector instead.
Axel.