$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-01-09 15:09:35
From: "Black Ice" <yg-boost-users_at_[hidden]>
> 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.