Skip to content

Instantly share code, notes, and snippets.

@benjamn
Created December 6, 2008 02:00
Show Gist options
  • Save benjamn/32583 to your computer and use it in GitHub Desktop.
Save benjamn/32583 to your computer and use it in GitHub Desktop.
struct test_struct {
double f(int x, double y) {
return x + y;
}
};
double test() {
int x = 1;
double y = 1.5;
test_struct tc;
// wait for it...
return tuples::make(x, y)(tc, &test_struct::f);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment