Boost logo

Boost :

From: Daniel Frey (d.frey_at_[hidden])
Date: 2008-03-21 08:14:11


is there any reason why shared_ptr does not have a ctor that takes an
auto_ptr and a deleter?

I also wonder if there is a resource leak if I just write:

auto_ptr<T> a = ...;
my_deleter d = ...;

shared_ptr<T> s( a.release(), d );

Regards, Daniel

Boost list run by bdawes at, gregod at, cpdaniel at, john at