
13 Apr
2008
13 Apr
'08
12:25 a.m.
On Sat, 2008-04-12 at 21:37 +0300, Peter Dimov wrote:
This introduces overhead to both ctors which take a deleter, they are now calling get_deleter in order to pass it to sp_accept_owner. This is IMHO not needed, the called sp_accept_owner can call get_deleter on the shared_ptr itself. If passing the type of the deleter itself is really needed, it can be done without overhead, e.g. pass (D*)0. Regards, Daniel