I have a function, let's say
void processSomething(Arg1 arg1, Function t){
...
t(someVariable);
}
I want both of the following usages to work:
processSomething(myArg1, [&](SomeVariable someVar){...});
void(*myFunc)(void) = &someFunc;
processSomething(myArg1, myFunc);
However, I found that I can't use the lambda-way when using void(*myFunc)(void) as parameter declaration.
Any way to have both usages work without two separate functions or an overly complicated use of wrappers?