Hello,
I seen that TRoot inherits TDirectory which is a TObject. Why then does TRoot have its own operator new implementation which calls that of TObject?
TObject.h...
class TObject {
...
void *operator new(size_t sz) { return TStorage::ObjectAlloc(sz); }
void *operator new(size_t sz, void *vp) { return TStorage::ObjectAlloc(sz, vp); }
...
}
TRoot.h file...
class TRoot : public TDirectory {
...
void *operator new(size_t l) { return TObject::operator new(l); } // is this needed?
...
}
Just curious,
William J Deninger
deninger@uiuc.edu
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET