Hi all,
Could someone please explain why the below code is not working with root? It works perfectly with g++(just remove all // ) . I know it has to do with CINT . Can someone please guide me to a solution?
Thanks in advance…
which will compile your code before executing it (so it even runs faster). It works in ROOT v5.28.00.
If the int in your pair<int,double> is unique, I’d recommend using map<int, double>. If it’s not, you could use multimap<int, double>. However if you want to preserve the order (which I assume is the reason why you use a vector) you could use tr1::unordered_map and tr1::unordered_multimap. However, I don’t know if this is possible as is in CINT. Perhaps you could try to include gInterpreter->AddIncludePath() statements to point to the tr1 header files.