>>>>> Branko Čibej <br...@xbc.nu>: > I suggest you take a look at auto_ptr and auto_ptr_ref.
auto_ptr is very limited in that it allows only a single pointer to a single object. > You need a similar pair of classes that will deal with pools, ...but the idea of smart pointers is the correct one here, yes.