diff --git a/ThreadPool.h b/ThreadPool.h index 076f9fd..4183203 100644 --- a/ThreadPool.h +++ b/ThreadPool.h @@ -63,7 +63,7 @@ template auto ThreadPool::enqueue(F&& f, Args&&... args) -> std::future::type> { - typedef typename std::result_of::type return_type; + using return_type = typename std::result_of::type; auto task = std::make_shared< std::packaged_task >( std::bind(std::forward(f), std::forward(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(); }