Open jinyunshaobing opened 1 year ago
How can i do this?
class A { public: void a(){ ThreadPool pool(4); pool.enqueue(b); } private: void b(){ num++; } int num; }
What i see is :No instance of function template 'ThreadPool::enqueue' matching argument list.
No instance of function template 'ThreadPool::enqueue' matching argument list.
pool.enqueue(&A::b, this);
How can i do this?
What i see is :
No instance of function template 'ThreadPool::enqueue' matching argument list.