From 1bf2e2866c728d9c5468ad6a3d9c8b0ce49324ed 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/pgsql/connection.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/odb/pgsql/connection.hxx b/odb/pgsql/connection.hxx index 8d699fc..8ac0f50 100644 --- a/odb/pgsql/connection.hxx +++ b/odb/pgsql/connection.hxx @@ -7,12 +7,11 @@ #include -#include // std::auto_ptr - #include #include #include +#include #include #include @@ -125,7 +124,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_; }; } } -- cgit v1.1