aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-26 18:09:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-26 18:09:51 +0200
commit2f2445901be048a520d07883ff70e021f158c6ff (patch)
treef0bdf0a243f5e990a07188f423a54f23019b8b0c
parent8b778f4638a017155c81bb5c9fd47afb1e0c7f0b (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/mysql/connection.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/mysql/connection.hxx b/odb/mysql/connection.hxx
index 331eb9b..0d4cf75 100644
--- a/odb/mysql/connection.hxx
+++ b/odb/mysql/connection.hxx
@@ -8,7 +8,6 @@
#include <odb/pre.hxx>
#include <vector>
-#include <memory> // std::auto_ptr
#include <odb/forward.hxx>
#include <odb/connection.hxx>
@@ -21,6 +20,7 @@
#include <odb/mysql/auto-handle.hxx>
#include <odb/details/shared-ptr.hxx>
+#include <odb/details/unique-ptr.hxx>
#include <odb/mysql/details/export.hxx>
@@ -172,7 +172,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_;
// List of "delayed" statement handles to be freed next time there
// is no active statement.