External API requires function void foobar(void (*func)(void))
, and I can not change it.
How I can pass into this function another variables?
foobar([](){});
This code works fine.
foobar([this](){});
But this - not. Why?
External API requires function void foobar(void (*func)(void))
, and I can not change it.
How I can pass into this function another variables?
foobar([](){});
This code works fine.
foobar([this](){});
But this - not. Why?