Hi Cyril,
I cannot reproduce this problem (at least with a simple test).
Could you send me a working macro reproducing the problem ?
Rene Brun
Cyril Lachaud wrote:
>
> Hi all,
> in fact there is a bug concerning the writing of vector<string> in TFile.
> See the example :
> filealreadysummarized->toto.push_back(1);
> filealreadysummarized->toto.push_back(2);
> filealreadysummarized->toto.push_back(3);
> filealreadysummarized->tutu.push_back("x");
> filealreadysummarized->tutu.push_back("y");
> filealreadysummarized->tutu.push_back("z");
> toto is a vector<int> and tutu is a vector<string>. Then they are stored
> in a Root file. After reading the rootfile the content is :
> 1
> 2
> 3
> x
> x
> x
>
> The same string has been written 3 times.
>
> It looks like a bug, no ?
> Bye,
> Cyril
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET