1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-1750 unique_ptr doesn't work in all OSes

This commit is contained in:
Andrew Hutchings
2018-09-28 07:55:06 +01:00
parent 94dfacfe25
commit 5092b4fd13

View File

@ -75,7 +75,7 @@ public:
boost::thread* create_thread(F threadfunc)
{
boost::lock_guard<boost::shared_mutex> guard(m);
std::unique_ptr<boost::thread> new_thread(new boost::thread(threadfunc));
std::auto_ptr<boost::thread> new_thread(new boost::thread(threadfunc));
threads.push_back(new_thread.get());
return new_thread.release();
}