Dear all,
I am very sorry. It seems that the sketch of the problem below does not
correctly illustrate what is going wrong. I still have problems with the
vector, but it is more complicated then I thought. Until further notice,
please forget about my previous mail.
Again, sorry for the disturbance,
With best regards,
Wouter
On Thu, 16 Jan 2003, Wouter Hulsbergen wrote:
>
> 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