ClassImp question

Dear ROOTers,
if we have two classes that we want to create reflection info
class A
typedef class A B;
is it necessary to do
both ClassImp(A)
ClassImp(B)
in the definition file or is one of the two enough? Please note that #pragma link C++ class is defined for both of them in LinkDef.h file. Thanks,
filimon

Hi,

You only need the ClassImp for the actual class (and not for the typedef).

Cheers,
Philippe.