Writing std::string to TTree

Hi,

I have problems writing a std::string to a TTree, when I read the branch the string is always empty. The strange thing is I can write a vector of strings and it works fine.
Included is an example script which reproduces how I create the tree and read it.

Thanks,
Guillaume
read_tree.C (342 Bytes)
create_tree.C (357 Bytes)

Hi,

This problem has been fixed in ROOT v5.22/00.

Cheers,
Philippe.

PS. My apologies for the late answer …