Skip to content

Commit

Permalink
changed typedef to using
Browse files Browse the repository at this point in the history
  • Loading branch information
progschj committed Sep 26, 2014
1 parent fcc9141 commit 9a42ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ThreadPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)...)
Expand Down Expand Up @@ -91,7 +91,7 @@ inline ThreadPool::~ThreadPool()
stop = true;
}
condition.notify_all();
for(std::thread & worker: workers)
for(std::thread &worker: workers)
worker.join();
}

Expand Down

0 comments on commit 9a42ec1

Please # to comment.