diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 18:09:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 18:09:51 +0200 |
commit | eb307728d99d5985430dc8f83331859e28fd6ff5 (patch) | |
tree | e3bb6c4ff4e7552e654adefd20c7b1d45a9220b1 | |
parent | aad1221242bb26e109aafc52d7a09dc2b04897ad (diff) |
Replace remaining std::auto_ptr uses with odb::details::unique_ptr
GCC in C++11 mode issues a deprecation warning for std::auto_ptr.
-rw-r--r-- | odb/oracle/connection.hxx | 8 |
1 files 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_; }; } |