Hi,
I got a Problem with map. I use ROOT in Cygwin, my OS is WinXP, and have installed the new version ROOT from CVS. But I got Error, when I try to use std::map. Anyone konw about that? Thanks.
root [0] #include
root [1] #include
root [2] #include
root [3] std::map<std::string, int, std::lessstd::string > age;
root [4] age[“Fred”] = 42;
Error: Can’t call map<string,int,less,allocator<pair<const string,int> > >::operator in current scope FILE:(tmpfile) LINE:1
Possible candidates are…
filename line:size busy function type and name (in map<string,int,less,allocator<pair<const string,int> > >)
Error: improper lvalue FILE:(tmpfile) LINE:1
*** Interpreter error recovered ***