std::thread传入类成员函数指针报错failed to specialize function template ‘unknown-type invoke
classmyclass{public:intmyfunc(intval){returnval;}}创建一个线程调用myfunc:std::threadmythread=std::thread(&myclass::myfunc,42);当创建一个std::thread并指定myclass的myfunc作为线程任务函数时会编译报错:errorC2893:Failedtospecializefunct