Dear ROOTers,
I have following problem I would like to use multiple inheritance like:
class A: public TObject
class B: public A:
class C: // not inherit from TObject due to problem with creating dictionary for D
class D: public B, public C
But with this solution - I cannot save D class (members from C class) I get error like:
Warning in TStreamerInfo::Build:: D: base class C has no streamer or dictionary it will not be saved
Is there some kind of workaround of this problem?
Hi,
it is not a problem to write on disk instances of classes which do not inherit from TObject. You just need to create a dictionary for C, selecting it in your linkdef or “selection xml” file (see help of genreflex and/or rootcling commands).
Cheers,
Danilo