[ROOT] map, vector, set, list,...

From: Schaefer Martina (schaefer@lpsc.in2p3.fr)
Date: Fri May 02 2003 - 13:57:27 MEST


Hi,

i have another question, I want to use maps and vectors in a root macro.
 
For my vector everything is fine:
root [0] #include<vector>
root [1] vector<int> v
root [2] v.push_back(5)
root [3] v[0]
(vector<int>::reference)5

For the list also.

but for my map:
root [0] #include<map>
root [1] map<int,int>m
Error: Symbol map is not defined in current scope
FILE:/tmp/file9Stzio_cint LINE:1
Error: Symbol int,int is not defined in current scope
FILE:/tmp/file9Stzio_cint LINE:1
Error: Symbol m is not defined in current scope  FILE:/tmp/file9Stzio_cint
LINE:1
(const int)0
*** Interpreter error recovered ***    

and for the set:
root [0] #include<set>
root [1] set<int> s
this gives a segmentation violation!

Can you help me?

Thank you,

	Martina   



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET