diff options
Diffstat (limited to 'odb/details/posix/thread.cxx')
-rw-r--r-- | odb/details/posix/thread.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/odb/details/posix/thread.cxx b/odb/details/posix/thread.cxx index 67c4c53..669e196 100644 --- a/odb/details/posix/thread.cxx +++ b/odb/details/posix/thread.cxx @@ -2,8 +2,7 @@ // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file -#include <memory> // std::auto_ptr - +#include <odb/details/unique-ptr.hxx> #include <odb/details/posix/thread.hxx> #include <odb/details/posix/exceptions.hxx> @@ -33,7 +32,7 @@ namespace odb thread (void* (*func) (void*), void* arg) : detached_ (false) { - std::auto_ptr<thread_data> data (new thread_data); + unique_ptr<thread_data> data (new thread_data); data->func = func; data->arg = arg; |