So if someone has an opinion about this potential change to scoped_ptr, now
is probably the right time to express it.
I've been experimenting with:
template<class T, class D = detail::apply_delete> class move_ptr;
So far I like it. It is implemented so that the deallocator can also be a reference to a deallocator. Can be used like:
template<class T>
template<class Y, class D>
shared_ptr<T>::shared_ptr(Y* p, D d)
: ptr_(p)
{
move_ptr<Y, D&> hold(p, d);
s_ = new detail::shared_ptr_deleter<Y, D>(p, d);
hold.release();
...
}-Howard
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
