Hi Sebastian, ClassImp could ClassImpUnique with the 2nd argument being __LINE__ ClassImpUnique uses the 2nd arguments to declare a variable that should be unique. However, I both A.C and B.C have a ClassImp at the same line and C.C include both A.C and B.C, then ClassImp defines a duplicated variable and the way around this problem is to use ClassImpUnique instead of ClassImp and provided a different 'qualifier' than __LINE__. Bottomline, unless your compiler complains that ClassImp redefines an existing variable, you do not need to worry about ClassImpUnique. Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Sebastien Greder Sent: Friday, September 26, 2003 4:59 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] ClassImp vs. ClassImpUnique sorry to bother, but I forgot to put a subject hello Rooters, I'd just like to have some explanation concerning the difference between ClassImp and ClassImpUnique, maybe I missed some doc, if so, could you point me the location. Thanks, seb
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET