Hello all,
using ROOT v4.04/02 with the stl vector container required no dictionary generation. Now I tried to use a map<int, int> and got a
"no dictionary for class pair<int, int>" message. The macro I used was
{
#include <map> // this sufficed in a similar vector macro
#include <pair> // probably unnecessary
#include <utility> // unnecessary as well?
map<int, int> mymap;
map<int, int> *mymappointer;
TTree *mytree = new TTree();
mytree->Branch("mymappointer", "map<int, int>", &mymappointer);
for (int i = 0; i<10; i++)
{
mymap.insert(make_pair(i,i*i));
}
mymappointer = &mymap;
mytree->Fill();
}
Do I have to generate dictionary classes for pair, or did I miss something else? If so, do I have to do that for every possible content of pair (e.g. int, double or int,string or double, object) separately?
Many Thanks,
Daniel