Skip to content

Instantly share code, notes, and snippets.

@barcharcraz
Created April 12, 2013 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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