Re: Template classes in ROOT

Masaharu Goto (gotom@hpyiddq.jpn.hp.com)
Fri, 14 Nov 1997 12:25:02 JST


Concerned about STL,

CINT is still not ready for STL yet. Please use root container classes
instead for the time being.

I'm thinking about special implementation of STL for CINT. Using
existing STL implementation as it is may not make good sense in
interpreter. But as you know, STL is a monster. It will take time.

Masaharu Goto

>
> Hi,
>
> I am trying to convert an existing data structure to ROOT. The data structure uses
> the standard template library objects, such as vector<Trace>, etc.
>
> When i try to compile a simple test program that uses the stl, i get an error in rootcint
>
> rootcint -f eventDict.cc -c event.h LinkDef.h
> Error: source file "stl.h" cannot open FILE:event.h LINE:12
> Error: no such template vector<Trace> FILE:event.h LINE:34
> Error: No symbol vector in current scope FILE:event.h LINE:34
> Error: No symbol Trace in current scope FILE:event.h LINE:34
> Error: No symbol trace in current scope FILE:event.h LINE:34
>
> My program does compile, though. But it produces a segmentation violation.
>
> Is it possible to use template library classes in a TObject?
> Or should i use TArray and TClonesArray objects?
>
> Thanks in advance,
>
> Steve Eichblatt
>
>
>