class A {

public:

function<void(A&)> temp;

void something() {

temp = &A::hmm;

temp(*this);

}

void hmm() {

cout << "asd";

}

};


선언할땐 A& 해놓고 할당할때는 &A 이지랄....