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:48 MET