Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. class Klass
  5. {
  6.  
  7. };
  8.  
  9. template <class T, typename F>
  10. class slot
  11. {
  12.     typedef void (T::*MemberFunction) (bool);
  13.  
  14.     void Run()
  15.     {
  16.         MemberFunction* x = (MemberFunction*) NULL;
  17.         (*x) (true, false);
  18.     }
  19. };
  20.  
  21.  
  22.  
  23. int main()
  24. {
  25.     slot<Klass, int()> x;
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement