(ROOT)CINT: #pragma link flags & templates

From: George Heintzelman (gah@bnl.gov)
Date: Thu Dec 23 1999 - 17:08:15 MET


Hi,

I trying to get some template classes to be linked into ROOT. I wanted 
these templates to have Streamers declared, but the ROOT generated 
streamers for the classes were not correct due to the data members of 
the class. So I tried to do the following in my LinkDef.h file:

#pragma link C++ class TPhArray*-;

in order to match all TPhArray* template classes, and not have a 
ROOT-generated streamer for them. Unfortunately, it appears that the 
two flags (* and -) don't interact, which I verified by a careful look 
at CINT_newlink.c.

So, is there any way to do what I want? It occurs to me that I may not 
be going about this the right way at all with the template function 
definition, since that ultimately needs to be #included in the 
functions using the template as well... Anyway, any help would be 
appreciated.

Thanks,

George Heintzelman
gah@bnl.gov



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