|
Boost : |
From: Marshall Clow (marshall_at_[hidden])
Date: 2006-12-03 11:32:45
At 5:12 PM -0800 12/1/06, Sohail Somani wrote:
> > -----Original Message-----
>> From: boost-bounces_at_[hidden]
>> [mailto:boost-bounces_at_[hidden]] 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_at_[hidden]> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk