Hello rooters,
I have some problems with using the stl-vector.
I created a class 'Test' with the following methods:
int foo(void);
vector<D_Line> dLines;
where 'D_Line' is a class containing only 'normal' variables (onlt floats
and bools, no pointers or other objects).
The method 'foo' looks like this:
int Test::foo(void)
{
D_Line dLine;
dLine.setPosition(100);
dLines.push_back(dLine);
dLine.setPosition(200);
dLines.push_back(dLine);
}
Now I call this method like this:
> #include "Test.cc"
> Test a;
> a.foo();
After that I try to clear the vector like this:
> dLines.erase(dLines.begin(),dLines.end());
But this does not work!
When I do exactly the same without using it in the ROOT-System it works!
So it seems that classes which are used by root cannot use the standard
'vector'-class.
So what can I do??
Alexander Dietz
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET