We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc9141 commit 9a42ec1Copy full SHA for 9a42ec1
ThreadPool.h
@@ -63,7 +63,7 @@ template<class F, class... Args>
63
auto ThreadPool::enqueue(F&& f, Args&&... args)
64
-> std::future<typename std::result_of<F(Args...)>::type>
65
{
66
- typedef typename std::result_of<F(Args...)>::type return_type;
+ using return_type = typename std::result_of<F(Args...)>::type;
67
68
auto task = std::make_shared< std::packaged_task<return_type()> >(
69
std::bind(std::forward<F>(f), std::forward<Args>(args)...)
@@ -91,7 +91,7 @@ inline ThreadPool::~ThreadPool()
91
stop = true;
92
}
93
condition.notify_all();
94
- for(std::thread & worker: workers)
+ for(std::thread &worker: workers)
95
worker.join();
96
97
0 commit comments