From 736b520b08c8d12e9536628317da17faa6081e84 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/sqlite/connection.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'odb') diff --git a/odb/sqlite/connection.hxx b/odb/sqlite/connection.hxx index 3ddd68d..5eb1995 100644 --- a/odb/sqlite/connection.hxx +++ b/odb/sqlite/connection.hxx @@ -9,13 +9,13 @@ #include -#include // std::auto_ptr - #include #include + #include #include #include +#include #include #include @@ -131,7 +131,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_; // Unlock notification machinery. // -- cgit v1.1