I'm using a generic EventEmitter instance:
EventEmitter mEventHandler;
So I've defined this bind:
function<void(int, double)> onSetMin = bind(&ILFO::SetMin, this, placeholders::_2);
mEventHandler.on(kParamID, onSetMin);
and the on
such as:
mEventHandler.emit(paramID, someInt, someDouble);
which is "generic" as said, and set 2 params. But my specific function SetMin
need just one param (which would be someDouble
in this case):
void ILFO::SetMin(double min);
How would you just pass second paramter from bind?