Boost logo

Boost :

From: Jesse Jones (jesjones_at_[hidden])
Date: 2001-05-08 21:17:16


At 9:18 AM -0400 5/8/01, Douglas Gregor wrote:
>On Monday 07 May 2001 08:45 pm, you wrote:
>> I've been experimenting with adding support for comparisons to my
>> callback proposal from last year. The overall design is quite a bit
>> simpler than Gregor's code, but it has the same sort of problems if
>> you try to add operator==.
>
><Doug looks at the mess that is boost::function, shakes his head and grumbles
>about virtual function overhead>

But if it results in a simpler design it might be worth it. :-)

>Here's what I've been considering:
>
>function is:
> - Assignment from any target function object
> - Clearing out the value (assignment from nil)
> - Execution of that target function object
> - A check to see if it is empty
>
>callback extends function:
> - Equality test

I think this is probably the best solution for boost.

   -- Jesse


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk