the problem is that this code was compiled (with g++ as executable).
I don’t fully understand what you mean by saying [quote]spell the arguments out by creating variables that store intermediary results (it->second, [k], &)[/quote]
Isn’t that what I’m doing in the piece of code that is working?
Can you provide running code that shows the problem? I.e. please fill in the “…” in between the code fragments that you posted, such that I can call the code and see the error.
The code is pretty long and this just one function of many. Here is gzipped version. To run the code though you would need also specific root-tuples. The problem is in scanAllCuts() function in CreatePlot.cpp.
For this code valgrind gives like 40k errors, where probably all of them come from root libraries. I reported this in other post. This makes almost impossible to find something useful with valgrind.
[quote]For this code valgrind gives like 40k errors, where probably all of them come from root libraries
Yes, the number of errors I quoted was after using suppression file.[/quote]humm … odd. Can you send us the valgrind log file?