From: Gregory Colvin (gregory.colvin_at_[hidden])
Date: 2003-08-27 12:32:40
On Wednesday, Aug 27, 2003, at 11:02 America/Denver, E. Gladyshev wrote:
> --- Peter Dimov <pdimov_at_[hidden]> wrote:
>> My point exactly. This is why the Java memory manager beats C++'s
>> manager in the long run, because the user can't fix it.
> What is the pupose of the Deleter parameter in boost::shared_ptr?
> It creates an illusion that I can control memory allocations in
> shared_ptr, but the counter allocations are not customizable.
They are currently customizable either by modification of the
shared_count source or specialization of sp_counted_base_impl.
> Would not it be better to remove the Deleter from shared_ptr and
> always require to use 'new' just to be consistent
> and not to fool users? :)
No, it would not.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk