Created
April 12, 2013 03:45
-
-
Save barcharcraz/5369174 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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