From 5092b4fd13ba01f8e727184687a236e14a4f3a56 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Fri, 28 Sep 2018 07:55:06 +0100 Subject: [PATCH] MCOL-1750 unique_ptr doesn't work in all OSes --- utils/threadpool/threadpool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/threadpool/threadpool.h b/utils/threadpool/threadpool.h index 95f7d4c7e..1f0c6d0aa 100644 --- a/utils/threadpool/threadpool.h +++ b/utils/threadpool/threadpool.h @@ -75,7 +75,7 @@ public: boost::thread* create_thread(F threadfunc) { boost::lock_guard guard(m); - std::unique_ptr new_thread(new boost::thread(threadfunc)); + std::auto_ptr new_thread(new boost::thread(threadfunc)); threads.push_back(new_thread.get()); return new_thread.release(); }