You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
}
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: