From: Douglas Gregor (gregod_at_[hidden])
Date: 2001-10-08 10:13:18
On Sunday 07 October 2001 04:44, you wrote:
> > At some later point I need to ask onClick "do you contain an instance of
> > F? if yes, please give me a reference to it so I can add another
> > handler."
> With the current interface, this isn't possible, but I think it would be a
> worthwhile addition. I suggest the following interface (modeled after
This is now in CVS. The std::type_info is available via the member function
target_type(), and function_cast<To>(...) returns a reference to the
(possibly const) underlying target function object (where "To" is the type of
the function object/function pointer).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk