CINT and templated classes

Pasha Murat (murat@cdfsga.fnal.gov)
Tue, 2 Sep 1997 16:10:12 GMT


Hi,

is there a way to tell rootcint that it deals with the templated class?
CINT documentation says that CINT does support templates, however there is
an issue of how to pass information about templates to ClassDef and ClassImp
macros. There was a question about it in roottalk digest some time ago, it has
been left not answered.
Thanks, Pasha

P.S. Apparently the naive approach
--------------------------------------------------------------------- a.hh
#include "root/Rtypes.h"

template <class T>
class A {
public:
T Ia;
A () {}
ClassDef(A,1)
};

#ifdef __CINT__

#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;

#template <class T>
#pragma link C++ class A<T>;
#endif
--------------------------------------------------------------------------------
>rootcint -f a_cint.cc -c -I../include a.hh
--------------------------------------------------------------------------------
doesn't work.