我正在尝试在我的程序中创建多个线程,每当我尝试这样做时
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