Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Klass
- {
- };
- template <class T, typename F>
- class slot
- {
- typedef void (T::*MemberFunction) (bool);
- void Run()
- {
- MemberFunction x = (MemberFunction*) NULL;
- (*x) (true, false);
- }
- };
- int main()
- {
- slot<Klass, int()> x;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement