[ROOT] Problem with map

From: eric lyx (eric_lyx77@yahoo.de)
Date: Mon Sep 27 2004 - 16:01:57 MEST


Hi, 

I got a Problem with map. I use ROOT 4.00/08 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<map> 
root [1] #include<function> 
root [2] #include<string> 
root [3] std::map<std::string, int,
std::less<std::string> > age; 
root [4] age["Fred"] = 42; 
Error: Can't call
map<string,int,less<string>,allocator<pair<const
string,int> > >::operator[]((char*)0x1002ec34) in
current scope FILE:(tmpfile) LINE:1 
Possible candidates are... 
filename line:size busy function type and name (in
map<string,int,less<string>,allocator<pair<const
string,int> > >) 
Error: improper lvalue FILE:(tmpfile) LINE:1 
*** Interpreter error recovered *** 


Yuxiang


	

	
		
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET