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 | 1bf2e2866c728d9c5468ad6a3d9c8b0ce49324ed (patch) | |
tree | 65ceb66527e5906a786d0f8f0dcb7fcc60cec34d | |
parent | 80c78e7c4457ef6757edd881e8dc4f259a49a838 (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/pgsql/connection.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/odb/pgsql/connection.hxx b/odb/pgsql/connection.hxx index 8d699fc..8ac0f50 100644 --- a/odb/pgsql/connection.hxx +++ b/odb/pgsql/connection.hxx @@ -7,12 +7,11 @@ #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/unique-ptr.hxx> #include <odb/pgsql/version.hxx> #include <odb/pgsql/forward.hxx> @@ -125,7 +124,7 @@ namespace odb // Keep statement_cache_ after handle_ so that it is destroyed before // the connection is closed. // - std::auto_ptr<statement_cache_type> statement_cache_; + details::unique_ptr<statement_cache_type> statement_cache_; }; } } |