Hi,
I’m running root 5.20. There is a piece of code which runs correctly when I compile a macro
(.x MacroName.C++), and it gives error in macro mode:
Error: operator!= not defined for vector<int,allocator >::iterator PrintVNumeric4.C:160:
*** Interpreter error recovered ***
the piece of code is here:
//***************************************************
std::vector res;
MainStmt->GetVInt(1, res);
cout << "raw timestamp = " << times << " variable = ";
for (std::vector<int>::const_iterator it = res.begin();
it != res.end();
it++) {
cout << *it << " ";
}
//**************************************************
Is there some obvious reason why cint cannot interpret stl vector correctly?
Mariusz