From eb307728d99d5985430dc8f83331859e28fd6ff5 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <boris@codesynthesis.com>
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 <odb/pre.hxx>
 
-#include <memory> // std::auto_ptr
-
 #include <odb/forward.hxx>
 #include <odb/connection.hxx>
 
-#include <odb/details/shared-ptr.hxx>
 #include <odb/details/buffer.hxx>
+#include <odb/details/shared-ptr.hxx>
+#include <odb/details/unique-ptr.hxx>
 
 #include <odb/oracle/version.hxx>
 #include <odb/oracle/forward.hxx>
@@ -133,8 +132,7 @@ namespace odb
       auto_handle<OCISvcCtx> handle_;
       bool failed_;
 
-      std::auto_ptr<statement_cache_type> statement_cache_;
-
+      details::unique_ptr<statement_cache_type> statement_cache_;
       details::buffer lob_buffer_;
     };
   }
-- 
cgit v1.1