From c6d9dc0b7cbed43b8fcca891ddded06f66a0a798 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Apr 2012 18:09:51 +0200 Subject: Replace remaining std::auto_ptr uses with odb::details::unique_ptr GCC in C++11 mode issues a deprecation warning for std::auto_ptr. --- odb/details/win32/thread.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'odb/details/win32/thread.cxx') diff --git a/odb/details/win32/thread.cxx b/odb/details/win32/thread.cxx index 2c6e337..f51b949 100644 --- a/odb/details/win32/thread.cxx +++ b/odb/details/win32/thread.cxx @@ -9,8 +9,7 @@ #include #include // _beginthreadex, _endthreadex -#include // std::auto_ptr - +#include #include #include @@ -60,7 +59,7 @@ namespace odb thread:: thread (void* (*func) (void*), void* arg) { - std::auto_ptr d (new data); + unique_ptr d (new data); d->func = func; d->arg = arg; d->count = 2; // One for the thread and one for us. -- cgit v1.1