Re: [boost] FW: Suggestion for boost`s smart pointers

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Howard Hinnant
I wouldn't really need the extra indirection that seems to be implied there but that's a step in the right direction.
<nod> Agreed. The indirection is in there really only because you said "C". The deleter type can easily be a C++ class type which can then do anything you want.
Yes, it turns out I read your code wrong. I was thinking that was the signature for a something that would construct a tr1::function eventually. Been so long since I mucked around with function pointers :) Thankfully.

At 5:12 PM -0800 12/1/06, Sohail Somani wrote:
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Howard Hinnant
I wouldn't really need the extra indirection that seems to be implied there but that's a step in the right direction.
<nod> Agreed. The indirection is in there really only because you said "C". The deleter type can easily be a C++ class type which can then do anything you want.
Yes, it turns out I read your code wrong. I was thinking that was the signature for a something that would construct a tr1::function eventually.
A library that I use for Mac OS programming (Nitrogen <http://sourceforge.net/projects/nitric>) uses exactly this idiom - two classes named "Owned" (which implements auto_ptr semantics) and "Disposer". -- -- Marshall Marshall Clow Idio Software <mailto:marshall@idio.com> It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shaking, the shaking becomes a warning. It is by caffeine alone I set my mind in motion.
participants (2)
-
Marshall Clow
-
Sohail Somani