使用泛型STD:在一个类中具有成员函数的函数对象
mapstd::function
class Foo {
public:
void doSomething() {}
void bindFunction() {
// ERROR
std::function<void(void)> f = &Foo::doSomething;
}};error C2064: term does not evaluate to a function taking 0 argumentsxxcallobj
慕田峪9158850
holdtom
繁星点点滴滴
烙印99
随时随地看视频慕课网APP
相关分类