diff options
Diffstat (limited to 'odb/details/posix/tls.txx')
-rw-r--r-- | odb/details/posix/tls.txx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/odb/details/posix/tls.txx b/odb/details/posix/tls.txx index d9bf523..69cb537 100644 --- a/odb/details/posix/tls.txx +++ b/odb/details/posix/tls.txx @@ -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/exceptions.hxx> namespace odb @@ -34,7 +33,7 @@ namespace odb if (void* v = pthread_getspecific (key_)) return *static_cast<T*> (v); - std::auto_ptr<T> p (new T); + unique_ptr<T> p (new T); if ((e = pthread_setspecific (key_, p.get ()))) throw posix_exception (e); |