能力值:
( LV2,RANK:10 )
|
-
-
2 楼
附上代码: #include <iostream>
#include <functional>
class CheatingDetector {
public:
void foo(int val) {
printf("%d\n", val);
}
};
int main() {
using namespace std::placeholders;
std::function<void(int)> f2(std::bind(&CheatingDetector::foo, new CheatingDetector(), _1));
f2(1);
return 0;
}
|
|
|