Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using std::cout;
- using std::endl;
- using std::cin;
- using std::string;
- using std::vector;
- #include <sys/select.h>
- class Test{
- public:
- void member_func(){
- cout << "i'm a member function!" << endl;
- }
- };
- template<class A> void
- test(void (A::*m)()){
- Test t1;
- (t1.*m)();
- }
- int main(){
- Test t;
- test(&Test::member_func);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement