
12 May
2008
12 May
'08
7:21 p.m.
Frank Mori Hess wrote:
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.
Wow, I missed that. Thanks for the pointer.