TClass::GetClassInfo now returns void*

From: Nick West <n.west1_at_physics.ox.ac.uk>
Date: Mon, 2 Jun 2008 11:05:59 +0100


Dear Roottalk,

With the update made a few days ago:-

  r24077 | brun | 2008-05-31 20:39:09 +0100 (Sat, 31 May 2008) | 65 lines   

  Extend the TInterpreter class to support the CINT API used so far by ROOT. my code:-

    TClass objClass(objName.c_str());
    Int_t objSizefromRoot = objClass.GetClassInfo()->Size();

now fails to compile:-

  error: `ClassInfo_t*' is not a pointer-to-object type

Looking at the changes to TClass.h:-


GetClassInfo() now returns a ClassInfo_t* and changes to TDictionary.h:-   


  TDictionary.h:   

  @@ -47,6 +47,16 @@
...

  +typedef void ClassInfo_t;

ClassInfo_t* is just void*. How should I change my code to access class info in future?

Thanks,

Nick West Received on Mon Jun 02 2008 - 12:06:05 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 02 2008 - 17:50:01 CEST