"Thomas Matelich"
you prefer the containers to copy-constructible?
Well, I blew my 1 day exploration into replacing with ptr_vector without learning much except that we copy these SmartVector's around a lot, including returning them from functions.
copying a ptr_vector can be very expensive...that is why you can release it auto_ptr< ptr_vector<T> > foo() { ptr_vector<T> vec; ... return vec.release(); }
Unfortunately, we don't do it very often in the unittests I was trying to do my timing with. Anyway, my explorations did tell me that I think replacing our vector
would probably work better as a shared_ptr<vector>. I'll look into it next time I have a day to blow. Thanks anyway for a cool library.
you're welcome. br Thorsten