From 9a42ec1329f259a5f4881a291db1dcb8f2ad9040 Mon Sep 17 00:00:00 2001 From: Jakob Progsch Date: Fri, 26 Sep 2014 12:32:41 +0200 Subject: [PATCH] changed typedef to using --- ThreadPool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- GitLab