RE: [ROOT] [ROOT 3.03/08] problems with foreign template classes which have several parameters

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Sep 04 2002 - 16:51:09 MEST


Hi David,

Thanks for reporting this problem.  It has already been fixed in the CVS
repository.

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of David Chamont
Sent: Wednesday, September 04, 2002 6:16 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] [ROOT 3.03/08] problems with foreign template classes
which have several parameters



Hi rooters,

I moved to ROOT 3.03/08 and encounter problems with
foreign template classes which have several parameters.
These classes have no ClassDef/ClassImp, yet they are
included in some of my persistent classes, so I put a
"pragma link ..." for them in the LinkDef (Am I right ?).
This results in a compilation failure of the generated
dictionary :

  Dict.cc:229: macro `R__GenerateInitInstance' used with too many (2) args
  Dict.cc:229: parse error before `)

The line 229 is something like :

  R__GenerateInitInstance(const Class1<Arg1,Arg2>) ;

At first sight, the macro simply interpret the comma for itself,
and surely this line should not have been generated like this.

Someone else has observed this ?
Am i doing something wrong ?
Any trick to avoid the problem ?

David Chamont.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:07 MET