RE:Re: [ROOT] rootcint + pair + nexted clas

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Thu Aug 30 2001 - 15:05:18 MEST


Hello Christian,

Sorry for delay in my reply,

I tried your example and it compiled without problem
with my RedHat6.2 Linux and ROOT/CINT 5.15.10. If you
still have the problem, would you resend the information?

Thank you
Masaharu Goto



>Date: Mon, 20 Aug 2001 22:19:39 +0200
>From: Christian Holm Christensen <cholm@hehi03.nbi.dk>
>To: bv@bnl.gov, MXJ02154@nifty.ne.jp, roottalk@pcroot.cern.ch
>Subject: Re: [ROOT] rootcint + pair + nexted class.
>
>Hi Brett, 
>
>On Mon, 20 Aug 2001 15:36:00 -0400
>Brett Viren <bv@bnl.gov> wrote
>concerning "Re: [ROOT] rootcint + pair + nexted class.":
>> Hi Christian,
>> 
>> Christian Holm Christensen writes:
>>  > I don't know if this has anything to do with it, but I reported 
>>  > 
>>  >   http://root.cern.ch/root/roottalk/roottalk01/1561.html
>> 
>> My problems seem to be more related to the use of pair<> than nexted
>> classes.  Here is my example simplified with the nested class removed:
>
>I think your problems is a symptom of a Cint limitation.  I played
>around with some typedefs, and found that the header file:
>
>  // -*- mode: c++ -*-
>  //--- begin PairClass.h ---//
>  #ifndef PAIRCLASS_H
>  #define PAIRCLASS_H
>  #include <TObject.h>
>  #include <list>
>  #include <map>
>  class SomeClass 
>  {
>  public:
>    SomeClass();
>    ~SomeClass();
>  };
>
>  typedef const SomeClass cSomeClass;
>
>  class PairClass : public TObject
>  {
>  public:
>    PairClass();
>    virtual ~PairClass();
>  private:    
>    map<int, pair < const int , cSomeClass* > > fPairListMap;
>    list< pair < const int , cSomeClass* > > fPairList;
>
>  };
>  #endif  // PAIRCLASS_H
>  //--- end PairClass.h ---//
>
>did the trick, so I guess that it's a limitation of Cint that it can't
>parse the second const. 
>
>Yours, 
>
>Christian Holm Christensen -------------------------------------------
>Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91 
>         DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
>         Denmark                             Office: (+45) 353  25 305 
>Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:59 MET