Boost logo

Boost :

Subject: Re: [boost] scoped_allocator_ptr
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2009-09-11 08:42:58


On Fri, Sep 11, 2009 at 9:38 AM, Frank Mori Hess <frank.hess_at_[hidden]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Friday 11 September 2009, Felipe Magno de Almeida wrote:
>> Hi,
>>
>> Is there an interest in a scoped_ptr that receives a Allocator parameter?
>
> I don't understand.  I didn't think scoped_ptr did any allocations.

It doesn't, but it calls delete. Which is not appropriate when using
an Allocator.
Though a make_scoped_ptr would be quite handy too for a scoped_ptr
with Allocator
support.

[snip]

-- 
Felipe Magno de Almeida

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk