Boost logo

Boost Users :

From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2007-10-08 16:14:36


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.

-- 
Frank



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