the STL support in rootcint is a work in progress. Currently the
following case are supported:
vector<int> V1; // supported
vector<int*> V2; // supported
vector<int> *V3; // not yet, next release
vector<int*> *V4; // not yet, next release
Cheers, Fons.
Takeaki Toeda wrote:
>
> Hello,
>
> I have a test program which have a STL.
> This program can work in Redhat5.2 without root.
>
> Here is a header file in this program.
> rootcint v2.22 has compleated process in silently.
> But compiler is output error messages about TBuffer
> in compiling Dict.cc.
>
> Does not rootcint v2.22 support vector<int>*,
> vector<int*> and vector<int*>* ?
>
> Thanks,
>
> Take-Aki TOEDA
>
> -------------------------------------------------------------
>
> #ifndef Event_h
> #define Event_h
> #include <vector.h>
> #include <TObject.h>
>
> class Event : public TObject{
> public:
> Event();
> virtual ~Event();
>
> void SetV1();
> void ShowV1();
> void SetV2();
> void ShowV2();
> void SetV3();
> void ShowV3();
> void SetV4();
> void ShowV4();
>
> inline vector<int> GetV1(){return(V1);}
> inline vector<int*> GetV2(){return(V2);}
> inline vector<int> *GetV3(){return(V3);}
> inline vector<int*> *GetV4(){return(V4);}
>
> private:
> vector<int> V1;
> vector<int*> V2;
> vector<int> *V3;
> vector<int*> *V4;
>
> ClassDef(Event,1)
> };
> #endif
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910