线程使用&创建指向成员的指针

时间:2016-09-16 04:26:14

标签: c++ multithreading

我正在尝试在我的程序中创建多个线程,每当我尝试这样做时

std::thread thread1(threadedfunction);

我收到此错误:non-standard syntax; use '&' to create a pointer to member

当我像这样放&时:

std::thread thread1(&threadedfunction);

我收到此错误:'&': illegal operation on bound member function expression

0 个答案:

没有答案