Thanks for all the useful replies. Firstly, yes, I attempted to use scoped_ptr into a std::vector which didn't work out. I've taken your advice and used the vector to manage the storage. This is convenient, but does require a copy construction as far as I can tell.. Kind regards, Samuel
Hi!
Just a question. Why not using std::vector in conjunction with reserve and std::fill_n or std::generate_n algorithm? Why do you need your object instances to be heap allocated and not simply constructed in the vector storage? You might be interested by boost assign library to fill vector on the fly, instead of using std algorithms.
Regards, Ovanes
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users