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:58 MET