
15 Jun
2011
15 Jun
'11
6:18 p.m.
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