
22 Apr
2008
22 Apr
'08
12:14 a.m.
On Monday 21 April 2008 18:18, Daniel Frey wrote:
The attached patch optimizes the current implementation of enable_shared_from_this, it saves one plain pointer. That might not be very much, but it's a start. It is 100% compatible for the users, no features are dropped. Further improvements might be possible, but I think the attached patch is a good base.
I believe it would be possible to replace _internal_shared_this and the shared_ptr inside the deleter wrapper with a single shared_count. -- Frank