[ROOT] map<string,double> seg fault

From: John Pretz (pretz@umdgrb.umd.edu)
Date: Tue Mar 09 2004 - 14:34:11 MET


Greetings to the ROOT world,

I've been having trouble with map<string,double>.

It works fine from a root session
{
#include <map>
#include <string>
  map<string,double> m;
  m["string"] = 5.6;
  cout<<m["string"]<<endl;
}

but when I've got a map<string,double> as data in some class, and try to 
get it out, I get a segmentation fault.  

Please see the attached example.  It shows off what I can and can't do.
'make' compiles the code and runs the example.

Note that I haven't explicitly instantiated the map<string,double> 
template in the LinkDef because my first script works and so it looks like 
that template comes pre-instantiated (which is reasonable.)

Thanks for looking,

John
-- 
---------------Visit my webpage!---------------------
---------http://umdgrb.umd.edu/pretz-----------------





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