26 May
2007
26 May
'07
1:03 a.m.
On 5/25/07, Seweryn Habdank-Wojewódzki
# sobota 26 maja 2007 02:14, @ Felipe Magno de Almeida:
Use ptr_vector
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
d; d.push_back ( new ptr_vector<Foo> ( g ) );
Because ptr_vector is not copy-constructable. That is the same reason why you can't use it inside a STL container.
I should do like that:
ptr_vector<Foo> g; g.push_back ( new Foo(1,k) );
ptr_vector
d; d.push_back ( new_clone ( g ) ); Regards.
--
|\/\/| Seweryn Habdank-Wojewódzki \/\/
Regards, -- Felipe Magno de Almeida