STL vector

From: OKUMURA, Akira <oxon_at_icrr.u-tokyo.ac.jp>
Date: Fri, 27 May 2005 14:01:07 +0900


Hello ROOTers,

5.01.01 on Mac OS X 10.3.9 w/ gcc 3.3
and 4.02.00 on RH 7.3 w/ gcc 2.96.

I wrote the attached macro using STL vector. If I try to run the macro twice,
some errors occur in the second time.

There is not need to use vector.
Array is good enough for this macro.
But I would like to know why the macro does not run properly.

root [0] .x test.C #<=works
root [1] .x test.C #<=does not work
Warning: template pair duplicate definition FILE:/usr/local/root/cint/stl/_pair.h LINE:21 Warning: template vector duplicate definition FILE:/usr/local/root/cint/stl/_vector.h LINE:35 Error: Too few template arguments
FILE:/usr/local/root/cint/stl/_vector.h LINE:181 Error: template argument for T missing
FILE:/usr/local/root/cint/stl/_vector.h LINE:182 Error: template argument for T missing
FILE:/usr/local/root/cint/stl/_vector.h LINE:182 *** Interpreter error recovered ***

Sincerely,

OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
Institute for Cosmic Ray Research, University of Tokyo 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan Tel/Fax : +81 4-7136-3153
Skype : okumura.akira

Received on Fri May 27 2005 - 07:01:17 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:08 MET