|
Boost : |
From: Kevlin Henney (kevlin_at_[hidden])
Date: 2000-11-29 06:38:18
In message <20001127162145.1443b831.gregod_at_[hidden]>, Douglas Gregor
<gregod_at_[hidden]> writes
>On Mon, 27 Nov 2000 13:57:44 -0700
>"Greg Colvin" <gcolvin_at_[hidden]> wrote:
>
>> I've not been following this closely, but Kevlin and I are working on
>> and operator() for shared_ptr, which would make it easy to add reference
>> counting to a cloning implementation.
>>
>
>This would remove the ugliness of calling a callback wrapped in a shared_ptr,
>though assigning the callback would still require extra work:
>shared_pointer< callback<int, int> > cb = new make_callback(some_func);
I was thinking more along the lines of combining deduction and
allocation, ie have a make_ function but also a new_ function.
Kevlin
____________________________________________________________
Kevlin Henney phone: +44 117 942 2990
Curbralan Limited mobile: +44 7801 073 508
mailto:kevlin_at_[hidden] fax: +44 870 052 2289
http://www.curbralan.com
____________________________________________________________
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk