[ROOT] set<int> in CINT ?

From: x (y@z.ch)
Date: Mon Nov 20 2000 - 18:46:36 MET


Hello,

maybe this is a trivial problem...

I try to use stl sets interactively:

  root [0] #include<set>
  root [1] set<int> x;

gives

  Error: Too few template arguments FILE:/tmp/fileotV972_cint LINE:1


ok...so I tried:

  root [2] set<int, less<int> > x;


which however gives:

  Limitation: Function name length overflow
strlen(reverse_bidirectional_iterator
  <rb_tree<int,singleton<const  int>,select1st<singleton<const
int>,int>,less<int>
  >::iterator,singleton<const int>,singleton<const int>&,long>()>127 
FILE:_iterator.h LINE:219


defining less<int> as a separate class:


  root [3] typedef less<int> less_int;
  root [4] set<int, less_int> x;

Leads to the same error message.. as well as set<Int_t, less<Int_t> > x;


Is it possible to use set<int> in a root Macro / in Cint interactively ?
If so, how ?


(I'm using 2.26/00 of November 7, 2000).


best regards & thanks for looking at the problem,


Andre


-- 
------------------+----------------------------------
Andre Holzner     | +41 22 76 76750 
Bureau 32 2-C13   | Building 32     
CERN              | Office 2-C13    
CH-1211 Geneve 23 | http://wwweth.cern.ch/~holzner/



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET