
6 Feb
2008
6 Feb
'08
7:56 p.m.
Robert Dailey wrote:
template< InputSubscription t_sub > static void subscribe( SignalBank const& bank, typename GetSignal
::signal::slot_type& slot ) { using boost::fusion::at_c; at_c ( bank.signals ).connect( slot ); } void footest() { subscribe
( bank, &mouseCB ); }; Notice that I have a wrapper function, 'subscribe', which uses the slot_type member of the signals class to pass the slot to the connect() function.
Try making that 'const ...::slot_type&' instead?