Template Function ecl::lite::connect(Signal<void, Capacity>&, void(*)(void), GlobalClass&)

Function Documentation

template<unsigned int Capacity, typename GlobalClass>
sigslots::Error ecl::lite::connect(Signal<void, Capacity> &signal, void (*function)(void), GlobalClass &g)

Convenience method to connect signal with global/static function.

This simply passes on the work to Signal’s connect method.

Parameters:
  • signal – : the signal for connection.

  • function – : the global/static function to slot.

Returns:

Error : the sigslots error