Re: [ROOT] Streamer Warning (Class Version)

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jan 30 2004 - 22:41:13 MET


Thomas,

I am sorry, but your question "Is this a bug or a feature"?
is inappropriate. What you observe is the right behaviour
and it must be so. Even if your class is empty, we have to write
to the file at least the version number of the class.

Rene Brun

On Fri, 30 
Jan 
2004, Thomas Bretz wrote:

> Dear all,
> 
> I had a construction like this:
> 
> class A : public TObject { ClassDef(A, 0) }
> class B : public A       { ClassDef(B, 0) }
> class C : public B       { ClassDef(C, 1) }
> 
> Now I have changed it to
> class A : public TObject { ClassDef(A, 0) }
> class B                  { ClassDef(B, 0) }
> class C : public A, public B { ClassDef(C, 1) }
> 
> In both cases I call A::Class()->IgnoreTObjectStreamer();
> 
> When loading old files storing C I get told, that class B has changed - 
> which is correct but should not matter, because it was not stored 
> anyhow, but than I get asked to increase the version number from 0 to 1 
> - which seems to be nonsense.
> 
> Is this a bug or a feature?
> 
> Thanks,
> Thomas.
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET