From eb307728d99d5985430dc8f83331859e28fd6ff5 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/oracle/connection.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/odb/oracle/connection.hxx b/odb/oracle/connection.hxx index 5c26b1c..f494a80 100644 --- a/odb/oracle/connection.hxx +++ b/odb/oracle/connection.hxx @@ -7,13 +7,12 @@ #include -#include // std::auto_ptr - #include #include -#include #include +#include +#include #include #include @@ -133,8 +132,7 @@ namespace odb auto_handle handle_; bool failed_; - std::auto_ptr statement_cache_; - + details::unique_ptr statement_cache_; details::buffer lob_buffer_; }; } -- cgit v1.1