提交 9a42ec13 编写于 作者: J Jakob Progsch

changed typedef to using

上级 fcc91415
......@@ -63,7 +63,7 @@ template<class F, class... Args>
auto ThreadPool::enqueue(F&& f, Args&&... args)
-> std::future<typename std::result_of<F(Args...)>::type>
{
typedef typename std::result_of<F(Args...)>::type return_type;
using return_type = typename std::result_of<F(Args...)>::type;
auto task = std::make_shared< std::packaged_task<return_type()> >(
std::bind(std::forward<F>(f), std::forward<Args>(args)...)
......@@ -91,7 +91,7 @@ inline ThreadPool::~ThreadPool()
stop = true;
}
condition.notify_all();
for(std::thread & worker: workers)
for(std::thread &worker: workers)
worker.join();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册