Skip to content

Instantly share code, notes, and snippets.

@barcharcraz
Created April 12, 2013 03:45
Show Gist options
  • Save barcharcraz/5369174 to your computer and use it in GitHub Desktop.
Save barcharcraz/5369174 to your computer and use it in GitHub Desktop.
class functor {
public:
functor(SomeType* ths) {
pthis = ths;
}
void operator()(int p1) {
pthis->SomeFunction(p1)
}
private:
SomeType* pthis
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment