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/posix/thread.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'odb/details/posix/thread.cxx') 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 // std::auto_ptr - +#include #include #include @@ -33,7 +32,7 @@ namespace odb thread (void* (*func) (void*), void* arg) : detached_ (false) { - std::auto_ptr data (new thread_data); + unique_ptr data (new thread_data); data->func = func; data->arg = arg; -- cgit v1.1