23 May
2005
23 May
'05
10:03 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Caleb Epstein Sent: Monday, May 23, 2005 2:32 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Scoped_ptr + deleter
Why doesn't scoped_ptr have an additional template
On 5/23/05, Sohail Somani
wrote: parameter to accept a deleter?
Because that would make it larger than sizeof (T*). I believe the general consensus on this is to use shared_ptr or perhaps the upcoming policy_ptr.
I also meant to mention that shared_ptr seems a little bit of overkill for wanting to use what is essentially scoped_ptr + a pointer to a deallocation function. Perhaps policy_ptr will be interesting.