
6 Feb
2005
6 Feb
'05
3:13 p.m.
Shame be where it belongs, after rading documentation, implementation, examples and test code, I am unable to write what should be simple signals code: --------------------------------------------- *.h typedef boost::function<void (void)> Callback; struct Signal { static void Connect(Callback f); }; ------------------------------------------------ *.cpp boost::signal<void (void)> mySignal; void Signal::Connect(Callback f) { // iterate over signal slots, if slot equals input f do nothing // otherwise connect f } Tony