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 | a0b3e39f85a4d238b3c389b54bda4167bdaf3999 (patch) | |
tree | fc2b3e816f482cffa23292b2325dd498b5bc6164 | |
parent | e2b40ba241540b1de28dc5e759ad2a6e536c4da3 (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/mssql/connection.hxx | 7 |
1 files 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 <odb/pre.hxx> -#include <memory> // std::auto_ptr - #include <odb/forward.hxx> #include <odb/connection.hxx> #include <odb/details/buffer.hxx> #include <odb/details/shared-ptr.hxx> +#include <odb/details/unique-ptr.hxx> #include <odb/mssql/mssql-fwd.hxx> #include <odb/mssql/version.hxx> @@ -130,9 +129,7 @@ namespace odb // Statement handle for direct execution. // auto_handle<SQL_HANDLE_STMT> direct_stmt_; - - std::auto_ptr<statement_cache_type> statement_cache_; - + details::unique_ptr<statement_cache_type> statement_cache_; details::buffer long_data_buffer_; }; } |