Created
December 15, 2010 11:31
-
-
Save deoxxa/741874 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
-------- | |
What I've got | |
-------- | |
Hook< functor2<int,int,int> >* hook = new Hook< functor2<int,int,int> >; | |
hook->addCallback((functor2<int,int,int>::ftype)&multiply); | |
hook->addCallback((functor2<int,int,int>::ftype)&add); | |
printf("We have %d callback(s)\n\n", hook->numCallbacks()); | |
functor2<int,int,int>::atype* args = new functor2<int,int,int>::atype(4, 5); | |
-------- | |
What I'd like | |
-------- | |
Hook< functor2<int,int,int> >* hook = new Hook< functor2<int,int,int> >; | |
hook->addCallback((hook->ftype)&multiply); | |
hook->addCallback((hook->ftype)&add); | |
printf("We have %d callback(s)\n\n", hook->numCallbacks()); | |
hook->atype* args = new hook->atype(4, 5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment