|
Boost Users : |
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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net