Skip to content

Commit 9a42ec1

Browse files
committed
changed typedef to using
1 parent fcc9141 commit 9a42ec1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ThreadPool.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ template<class F, class... Args>
6363
auto ThreadPool::enqueue(F&& f, Args&&... args)
6464
-> std::future<typename std::result_of<F(Args...)>::type>
6565
{
66-
typedef typename std::result_of<F(Args...)>::type return_type;
66+
using return_type = typename std::result_of<F(Args...)>::type;
6767

6868
auto task = std::make_shared< std::packaged_task<return_type()> >(
6969
std::bind(std::forward<F>(f), std::forward<Args>(args)...)
@@ -91,7 +91,7 @@ inline ThreadPool::~ThreadPool()
9191
stop = true;
9292
}
9393
condition.notify_all();
94-
for(std::thread & worker: workers)
94+
for(std::thread &worker: workers)
9595
worker.join();
9696
}
9797

0 commit comments

Comments
 (0)