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

Function Documentation

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

Convenience method to connect signal with member function.

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

Parameters:
  • signal – : the signal for connection.

  • function – : the member function to slot.

  • o – : the object associated with the member function.

Returns:

Error : the sigslots error