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
commit736b520b08c8d12e9536628317da17faa6081e84 (patch)
treef1f2b6de4310c73315e294f5a3ed02a35cf18677
parented96c77af3264975403fbb12d3ef3796c763b756 (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/sqlite/connection.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/sqlite/connection.hxx b/odb/sqlite/connection.hxx
index 3ddd68d..5eb1995 100644
--- a/odb/sqlite/connection.hxx
+++ b/odb/sqlite/connection.hxx
@@ -9,13 +9,13 @@
#include <sqlite3.h>
-#include <memory> // std::auto_ptr
-
#include <odb/forward.hxx>
#include <odb/connection.hxx>
+
#include <odb/details/mutex.hxx>
#include <odb/details/condition.hxx>
#include <odb/details/shared-ptr.hxx>
+#include <odb/details/unique-ptr.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx>
@@ -131,7 +131,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_;
// Unlock notification machinery.
//