Re: [ROOT] Writing map<TString, TString> to root file

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Feb 03 2003 - 08:59:24 MET


Hi,

Which version of ROOT are you using? 
see: http://root.cern.ch/root/roottalk/RoottalkRules.html

Are you using the option "+" in the pragma of your LinkDef.h file?

Could you send me 
 -the generated dictionary file
 -your LinkDef.h file
 -your class header file containing the map

Rene Brun


"H.-Gerd Rosarius" wrote:
> 
> Hello Rooters,
> 
> I have some problems writing a simple map with
> TString objects to my root file.
> 
> Although rootcint appears to parse maps correctly (there are no
> error messages or warnings when rootcint parses a class deriving from
> TObject that contains a map<TString, TString>),
> the generated Streamer either doesn't write them to a file properly,
> read them from a file properly, or both.
> However, map::size() returns 0 after a read.
> 
> Any ideas or workarounds?
> 
> Thanks
> 
> --
> H.-Gerd Rosarius



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET