aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.