9 Jan
2003
9 Jan
'03
8:09 p.m.
From: "Black Ice"
As following manner: template<class D> scoped_ptr(Y * p, D d);
Any suggestion are appreciated.
Scoped_ptr is intentionally kept as simple as possible to minimize overhead. A custom deallocation feature as above would require either doubling its size or making its operator* perform a double indirection. If you need the custom deallocator feature, use shared_ptr.