[ROOT] Using stl map

From: Antonio Sidoti tel. +39+0461 88 1525 (sidoti@science.unitn.it)
Date: Thu Dec 13 2001 - 18:19:07 MET


Dear rooters,
I am trying to use a stl map into a myclass.C that I load with .L
Although I am including map.h it seems that as soon as I use the
my_class::Loop() function, the map symbol is not recognized and I got the
following error:

Error: Symbol map is not defined in current scope  FILE:my_class.C LINE:51

What should I add to my .C?
Also another question, should I use map<float,float> or
map<Float_t, Float_t>?
Thanks a lot,
Antonio

P.S. I'm using root 3.02/01


//----------- myclass.C
#include <TROOT.h>
#include <TChain.h>
#include <TFile.h>
#include <map.h>
class my_class {
   public:
   void Loop();
  ...
 private:
 ...
}
void my_class::Loop(){
 ....
  map<float, float> pippo;
 ...
}

_______________________________________________________________________________
	     a n t o n i o   	      s i d o t i

	     e-mail	              sidoti@science.unitn.it
	                              sidoti@fnal.gov
	     www   		      http://higgs.tn.infn.it/~sidoti/
_______________________________________________________________________________
		"Il meglio e` nemico del buono"



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:11 MET