CINT and templated classes

From: Pasha Murat (murat@cdfsga.fnal.gov)
Date: Tue Sep 02 1997 - 18:10:12 MEST


	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.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:20 MET