Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::function not supported ?? #78

Open
ghost opened this issue May 11, 2022 · 1 comment
Open

std::function not supported ?? #78

ghost opened this issue May 11, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented May 11, 2022

hello
i would like first to thank you for the great work.
i would like to use the following code, but i guess the functional header doesnt have the function template:
#include

class LambdaTest {
public:

LambdaTest(std::function<void (int n)> lambda){
lambda_ptr = &lambda ;
}

void callLambda(int value) {
(*lambda_ptr)(value);
}

protected:
std::function<void (int n)> *lambda_ptr;

};

@Ebola-Chan-bot
Copy link

See my fork that supports this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant