progschj / ThreadPool

A simple C++11 Thread Pool implementation
zlib License
7.64k stars 2.21k forks source link

Why not use forwarding reference in other place in function enqueue? #55

Closed dmthuc closed 6 years ago

dmthuc commented 6 years ago

In function, ThreadPool::enqueue forwarding reference Argss&& is only used in one place

fogti commented 6 years ago

where should it be used too?

dmthuc commented 6 years ago

Yes, there's no need to use it anywhere else