RE:Re: [ROOT] bug&quest

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Fri Jun 08 2001 - 16:16:38 MEST


Hello Valeriy,

Thank you for reporting this problem.

I realize that you use interpreted version of list container.
operator != is missing, indeed.  I added it. However, interpreted
version of STL containers do not work well. I recommend to switch
to compiled version of STL container. For the moment, we have a
problem to solve in that course.  Let's discuss this in ROOT2001
workshop.

Thank you
Masaharu Goto



>Date: Wed, 06 Jun 2001 18:15:07 -0500
>From: Valeriy Onuchin <onuchin@fnal.gov>
>Reply-To: onuchin@fnal.gov
>To: Masaharu Goto <MXJ02154@nifty.ne.jp>
>Cc: Fons.Rademakers@cern.ch, roottalk@pcroot.cern.ch
>Subject: Re: [ROOT] bug&quest
>
> Hi Masa,
>check the STL test from ROOT-Apache DD test suite
>http://131.225.55.192/Carrot/Misc.chtml?TestSTL()
>
>the code of test func is
>
>//___________________________________________________________________
>void TestSTL()
>{
>   // several tests of STL classes
>
>   // test of vector
>   vector<char> abc;
>   for( int i='A'; i<='D'; i++ ) abc.push_back(i);
>
>   printf("<p><b>Test of STL vector class</b><p>");
>   printf("<table border=1 cellpadding=1>");
>   printf("<tr><td>Symbol</td><td>Dec</td><td>Oct</td></tr>");
>
>   for( int i='A'; i<='D'; i++ ) {
>      printf("<tr><td>%c</td><td>%d</td><td>%o</td></tr>",abc[i-'A'],i,i);
>   }
>   printf("</table>\n");
>
>   // test of list
>   printf("<p><b>Test of STL list class</b><p>");
>
>   list<const char*> li;
>   li.push_back("qwertyuiop");
>   li.push_back("asdfghjkl");
>   li.push_back("zxcvbnm");
>
>   list<const char*>::const_iterator pos;
>
>   for (pos=li.begin(); !(pos==li.end()); ++pos) { // it's weird, but 
"operator !=" not defined yet
>      printf("%s<br>",*pos);
>   }
>}
>
>Thanks.    Regards.    Valeriy
>
>
>
>Masaharu Goto wrote:
>
>>
>> Hello Valeriy,
>>
>> Thank you for reporting this. I'll take a look. I'd appreciate if you
>> send me a simplified example.
>>
>> There is also a problem of using precompiled STL container in ROOT.
>> Some people are seeing Segv. But I can not reproduce it. Did you
>> experience this?
>>
>> Thank you
>> Masaharu Goto
>>
>> >> -  I like STL appeared in CINT, but when I use iterators CINT claims
>> >>    that operator != not defined, although operator == is defined
>> >>    Could you add this?
>> >>
>



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