aboutsummaryrefslogtreecommitdiff
path: root/odb/details/win32/tls.txx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/win32/tls.txx')
-rw-r--r--odb/details/win32/tls.txx7
1 files changed, 2 insertions, 5 deletions
diff --git a/odb/details/win32/tls.txx b/odb/details/win32/tls.txx
index 7ce5821..4e3b9ab 100644
--- a/odb/details/win32/tls.txx
+++ b/odb/details/win32/tls.txx
@@ -2,12 +2,9 @@
// 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/win32/exceptions.hxx>
-using namespace std;
-
namespace odb
{
namespace details
@@ -29,7 +26,7 @@ namespace odb
if (void* v = _get (key_))
return *static_cast<T*> (v);
- auto_ptr<T> p (new T);
+ unique_ptr<T> p (new T);
_set (key_, p.get ());
T& r (*p);