From 2f2445901be048a520d07883ff70e021f158c6ff 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/mysql/connection.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odb/mysql/connection.hxx b/odb/mysql/connection.hxx index 331eb9b..0d4cf75 100644 --- a/odb/mysql/connection.hxx +++ b/odb/mysql/connection.hxx @@ -8,7 +8,6 @@ #include #include -#include // std::auto_ptr #include #include @@ -21,6 +20,7 @@ #include #include +#include #include @@ -172,7 +172,7 @@ namespace odb // Keep statement_cache_ after handle_ so that it is destroyed before // the connection is closed. // - std::auto_ptr statement_cache_; + details::unique_ptr statement_cache_; // List of "delayed" statement handles to be freed next time there // is no active statement. -- cgit v1.1