10 months, 2 weeks ago.

How can I use lambda functions for callbacks?

There is my code

There is my code

pcContr.addCommand('q', []() {

void ControllerPC::addCommand(char command, Callback<void()> cb)
    cbCommand[commCount] = command;
    cbArr[commCount] = cb;

Maybe someone can advice me a better way to make this...

Comment on this question

1 Answer

10 months, 2 weeks ago.

Hello Igor,

Please have a look at this reply.