Попытка запустить несколько потоков с использованием экземпляра вектора потока. Аргументы потока включают functor и functor_arg. Но возникает ошибка: нет соответствующего конструктора для инициализации 'std::thread'.
#include
#include
#include
// Functor class that overloads the operator()
class Functor{
public:
// Operator overload to allow the object to be called as a function
void operator()(int id) { //The const here indicates that the functor
//does not modify the object's state or private variables
std::cout
Подробнее здесь: https://stackoverflow.com/questions/792 ... g-no-match
Мобильная версия