Boost logo

Boost :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-05-12 14:54:36


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 12 May 2008 10:20 am, Andrey Semashev wrote:
> Hi,
>
> I've seen this topic floating around but it seems it didn't make it into
> boost for some reason. I propose to add a new helper function for
> shared_ptr, namely new_shared. The function would dynamically allocate
> an object and return shared_ptr that points to it. The function provides
> the following benefits:

make_shared and allocate_shared were added to boost svn recently
(boost/make_shared.hpp) based on n2351. They don't support custom destroyers
though, like your implementation does.

- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIKJJs5vihyNWuA4URAh0EAJ0Roj1PRYF/khR/alqyqkkciyAnAQCgntuo
pIDsE+yKb8Q+hhV5MGRR3nM=
=h+L7
-----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