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/tls.txx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'odb/details/win32/tls.txx') 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 // std::auto_ptr - +#include #include -using namespace std; - namespace odb { namespace details @@ -29,7 +26,7 @@ namespace odb if (void* v = _get (key_)) return *static_cast (v); - auto_ptr p (new T); + unique_ptr p (new T); _set (key_, p.get ()); T& r (*p); -- cgit v1.1