|
Boost : |
Subject: Re: [boost] [shared_ptr] Design question about make_shared
From: Fabio Fracassi (f.fracassi_at_[hidden])
Date: 2011-06-15 14:18:07
On 15/6/2011 13:15, Peter Dimov wrote:
> My initial implementation of boost::make_shared
[...]
> Now, this copied around the deleter a few times more than necessary and
> created problems with over-aligned types, so you're right that an
> optimized implementation
[...]
speaking of which (i.e. deleter and make_shared) is there any way to get
the optimized layout and a custom deleter? Because if I understand
correctly neither make_shared nor allocate_shared can be used with
custom deleters?
regards
Fabio
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk