From dde78d4908999d6163f0afaf3375b923326d33f7 Mon Sep 17 00:00:00 2001 From: danilcha Date: Fri, 9 Feb 2018 20:26:13 +0100 Subject: [PATCH] Remove 'inline' from the destructor --- ThreadPool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThreadPool.h b/ThreadPool.h index 4183203..be1d214 100644 --- a/ThreadPool.h +++ b/ThreadPool.h @@ -84,7 +84,7 @@ auto ThreadPool::enqueue(F&& f, Args&&... args) } // the destructor joins all threads -inline ThreadPool::~ThreadPool() +ThreadPool::~ThreadPool() { { std::unique_lock lock(queue_mutex);