C++11中,使用std::thread传递函数的要点,需要加上所属Class
报错:
error: no matching function for call to 'std::thread::thread(<unresolved overloaded function type>, ThreadsTemp&)'
threads.push_back(std::thread(ThreadsFeatureMatch, tt));
解决方案:
threads.push_back(std::thread(&va_mcs_demo::ThreadsFeatureMatch, this,tt));
|