Boost logo

Boost Users :

From: Stefan Funck (stefanfunck_at_[hidden])
Date: 2007-10-09 03:24:12


Frank Mori Hess <fmhess <at> speakeasy.net> writes:

>
> On Monday 08 October 2007 10:43, Stefan Funck wrote:
> > Is that doable? So far I have two questions:
> > 1) How can I define a member function according to the signature that is
> > given as a template parameter to the class?
> > 2) If I can do 1), how can I then bind the arguments given and call
> > another function, i.e. the original slot?
>
> It's a pain. You might look at the implementation of boost.function or
> boost.signal. I did both of the things you're asking about in the slot
> class of thread_safe_signals, using the boost preprocessor to generate all
> of the slotN classes.
>

I had a quick look into signal's implementation before and was a bit frightened,
hoping that my problem might be somehow easier to solve ...

One more thing I couldn't really figure out so far: what is the difference
between slot_type and slot_function_type?

Thanks for your help,
Stefan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net