$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-06-22 08:32:33
Seweryn Habdank-Wojewódzki skrev:
> Hi!
>
> Is there any smart_ptr and ptr_container that can transfer ownership of
> pointer, to avoid useless copy-construction and destruction of the object.
I guess you can't release a shared_ptr, even though it's use count is 1.
Peter, any reason for not having a release() given that its precondition
is unique() is true?
> Maybe I have to use vector <shared_ptr <T> > instead of ptr_container?
Seems like it.
-Thorsten