|
From: Christoph B. <bar...@or...> - 2007-08-08 07:42:50
|
> > Alternatively - unless you really really think you can write a vector > > better than C++ compiler implementors - consider using an STL vector to > > contain your data; > > i think i like to reinvent the wheel.. i know that might be a weakness but > i learn a lot about data structures that way (i hope) > > i finally found the source of my problem: > i did not overload the assignment operator (a problem that could have been > avoided with shared > pointers) You should also read appendix E of the C++ Programming book by Bjarne Stroustrup. It talks about implementing vector and exception safety. Christoph |