Dear developers,
I have a problem streaming a class which contains an stl vector of a
relatively complicated object. When reading the vector, it is always
empty. I think the problem might be related to something strange that I
observe when manipulating vectors of this objects of this type in the
interpreter.
I have a class A, which contains objects of class B:
class B
{
ClassDef(B,1)
} ;
class A
{
B myb ;
ClassDef(A,1)
} ;
I found that in interactive mode I can manipulate stl vectors of type B,
vector<B> vec;
B b;
vec.push_back(b) ;
but not of type A:
vector<A> avec;
A a;
vec.push_back(a) ;
-->Error: Can't call vector<SvtPullVertex,__malloc_alloc_template<0>
>::push_back(vertex) in current scope FILE:/tmp/filew3qBmP_cint LINE:
Is this what can be expected? (I am using 3.03.09.)
Many thanks,
Wouter
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:08 MET