From a0b3e39f85a4d238b3c389b54bda4167bdaf3999 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/mssql/connection.hxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/odb/mssql/connection.hxx b/odb/mssql/connection.hxx index d45b3e5..10cc4fc 100644 --- a/odb/mssql/connection.hxx +++ b/odb/mssql/connection.hxx @@ -7,13 +7,12 @@ #include -#include // std::auto_ptr - #include #include #include #include +#include #include #include @@ -130,9 +129,7 @@ namespace odb // Statement handle for direct execution. // auto_handle direct_stmt_; - - std::auto_ptr statement_cache_; - + details::unique_ptr statement_cache_; details::buffer long_data_buffer_; }; } -- cgit v1.1