T
toton
Hi,
I am using some smart_ptr (from Axter) in a STL vector. However I
need a custom deleter other than destructor (In my case a free member
function, which exists due to Historic reason only, do the cleanup and
commit suicide) . This smart_ptr is like STL auto_ptr (Single owner,
non-shared, copyable ). Can anyone point out whether it supports a
custom deleter.
1) STL auto_ptr doesn't have a custom deleter other than destructor.
2) Boost scoped_ptr can't be used with STL container (non copyable),
and do not have a custom deleter.
3) Boost shared_ptr has a custom deleter but it is shared, not owned.
Any reference is helpful.
Thanks
abir
I am using some smart_ptr (from Axter) in a STL vector. However I
need a custom deleter other than destructor (In my case a free member
function, which exists due to Historic reason only, do the cleanup and
commit suicide) . This smart_ptr is like STL auto_ptr (Single owner,
non-shared, copyable ). Can anyone point out whether it supports a
custom deleter.
1) STL auto_ptr doesn't have a custom deleter other than destructor.
2) Boost scoped_ptr can't be used with STL container (non copyable),
and do not have a custom deleter.
3) Boost shared_ptr has a custom deleter but it is shared, not owned.
Any reference is helpful.
Thanks
abir