使用此代码,我得到了错误:
错误 1 错误 C2064:术语不计算为采用 1 个参数的函数 c:\program files (x86)\microsoft visual studio 11.0\vc\include\functional 1152 1 Pipeline
class PipelineJob {
private:
std::thread *thread;
void execute(PipelineJob* object);
public:
void execute(PipelineJob* object)
{
}
PipelineJob()
{
this->thread = new std::thread(&PipelineJob::execute, this);
}
};
我尝试了很多变化,现在有人如何解决这个问题?