Boost logo

Boost Users :

From: Zeljko Vrba (zvrba_at_[hidden])
Date: 2007-09-28 06:31:28


On Fri, Sep 28, 2007 at 12:55:07PM +0300, Peter Dimov wrote:
>
> That's what the A argument is for. You quoted the wrong clause.
>
Oh, sorry. You mean this constructor:

template<class Y, class D, class A> shared_ptr(Y * p, D d, A a);

A question: why is the API designed so that using a custom allocator
forces the user to specify a deallocator? I.e. the two are orthogonal,
so why force the (use A) => (must use D) implication?

Is there a standard deleter class that can be just used in place of D?


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