[ROOT] TCollection(TCollection&) and its derived classes

From: Thomas Bretz (tbretz@uni-sw.gwdg.de)
Date: Mon Nov 12 2001 - 10:48:49 MET


Hello,

is there a reason, that all inherited members from TCollection (except
TOrdCollection) does neither have a copy constructor, nor a =operator?

This makes the following unpossible:

TList CreateListOfSomething()
{
   TList list;
   list.Add(new ...);
   list.Add(new ...);
   return list;
}

TList listofsomething = CreateListOfSomething();
listofsomething->SetOwner();

Regards,
Thomas.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:08 MET