Boost logo

Boost Users :

From: Seweryn Habdank-Wojewódzki (shw_at_[hidden])
Date: 2007-05-25 20:39:27


# sobota 26 maja 2007 02:14, @ Felipe Magno de Almeida:
> Use ptr_vector<ptr_vector<T> >

Thanks

Btw why there is no way to work with it like that:

    ptr_vector<Foo> g;
    g.push_back ( new Foo(1,k) );
    
    ptr_vector<ptr_vector<Foo> > d;
    d.push_back ( new ptr_vector<Foo> ( g ) );

I should do like that:

    ptr_vector<Foo> g;
    g.push_back ( new Foo(1,k) );
    
    ptr_vector<ptr_vector<Foo> > d;
    d.push_back ( new_clone ( g ) );

Regards.

-- 
|\/\/|   Seweryn Habdank-Wojewódzki
 \/\/ 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net