|
Boost : |
Subject: Re: [boost] scoped_allocator_ptr
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-09-11 09:33:07
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 11 September 2009, Felipe Magno de Almeida wrote:
> > 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.
unique_ptr has deleter and move support. Maybe a boost::unique_ptr would be
better to have than an enhanced scoped_ptr and a move_ptr?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkqqUZQACgkQ5vihyNWuA4W9YwCghlkswW+vF+a8ey4Ox+sGSlEj
+nsAoKF2wDS4w2uPNx3jJeGTbJiuE1ge
=CN2i
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk