$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2008-05-12 15:21:09
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.