aboutsummaryrefslogtreecommitdiff
path: root/odb/details/win32/thread.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-26 18:09:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-26 18:09:51 +0200
commitc6d9dc0b7cbed43b8fcca891ddded06f66a0a798 (patch)
treed8dbabde6674fe8ea91039b21cf26476bb9689b1 /odb/details/win32/thread.cxx
parent33c8b712edde86572443a0200169262240d2d974 (diff)
Replace remaining std::auto_ptr uses with odb::details::unique_ptr
GCC in C++11 mode issues a deprecation warning for std::auto_ptr.
Diffstat (limited to 'odb/details/win32/thread.cxx')
-rw-r--r--odb/details/win32/thread.cxx5
1 files changed, 2 insertions, 3 deletions
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 <windows.h>
#include <process.h> // _beginthreadex, _endthreadex
-#include <memory> // std::auto_ptr
-
+#include <odb/details/unique-ptr.hxx>
#include <odb/details/win32/thread.hxx>
#include <odb/details/win32/exceptions.hxx>
@@ -60,7 +59,7 @@ namespace odb
thread::
thread (void* (*func) (void*), void* arg)
{
- std::auto_ptr<data> d (new data);
+ unique_ptr<data> d (new data);
d->func = func;
d->arg = arg;
d->count = 2; // One for the thread and one for us.