nested type

From: Wouter Hulsbergen (hulsberg@mail.desy.de)
Date: Thu Aug 12 1999 - 18:32:57 MEST


Dear developers,

I would like to pass a nested class into CINT but the ClassImp macro (in
particluar the _ClassInit_ macro) seems not suitable for this. To be
more concrete: I want to do something like:

class A
{
 public:
  class B;
  ClassDef(A,1)
}

class A::B
{
  ClassDef(A::B,1)
}

ClassImp(A::B)

but get a compilation error

R__InitA' does not have a nested type named `B'

(which is caused by the _ClassInit_  macro trying to define a global
function R__Init##name which becomes R__InitA::B)

Would it be possible to invent a fix for this behaviour ? Or is it
anyway not possible to use nested types in CINT ?

Thanks a lot !

Wouter



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