Josh Posted December 9, 2020 Share Posted December 9, 2020 This isn't terribly useful, just something interesting I found: void CallMethod(void (Foo::*method)()) { Foo b; (b.*method)(); } int main(int argc, const char* argv[]) { CallMethod(Foo::Enable); 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.