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

invoke functions stored in a variant #54

Open
matpen opened this issue Apr 26, 2017 · 0 comments
Open

invoke functions stored in a variant #54

matpen opened this issue Apr 26, 2017 · 0 comments

Comments

@matpen
Copy link

matpen commented Apr 26, 2017

I know that it is possible to store a function pointer or a lambda in a variant, however a feature that I am missing is the ability to invoke that function dynamically through the variant.

Something like the following:

if (variant.get_type().is_function_pointer()) {
    rttr::method method = variant.to_method();
    method.invoke();
}
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