summaryrefslogtreecommitdiff
path: root/common/schema/embedded/order/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/schema/embedded/order/driver.cxx')
-rw-r--r--common/schema/embedded/order/driver.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/common/schema/embedded/order/driver.cxx b/common/schema/embedded/order/driver.cxx
index b035b69..fde5e96 100644
--- a/common/schema/embedded/order/driver.cxx
+++ b/common/schema/embedded/order/driver.cxx
@@ -4,15 +4,14 @@
// Test statement execution order in embedded schemas.
//
-#include <memory> // std::auto_ptr
-#include <cassert>
+#include <memory> // std::unique_ptr
#include <iostream>
#include <odb/database.hxx>
#include <odb/transaction.hxx>
#include <odb/schema-catalog.hxx>
-#include <common/common.hxx>
+#include <libcommon/common.hxx>
#include "test1.hxx"
#include "test2.hxx"
@@ -20,6 +19,9 @@
#include "test1-odb.hxx"
#include "test2-odb.hxx"
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
using namespace odb::core;
@@ -28,7 +30,7 @@ main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv, false));
+ unique_ptr<database> db (create_database (argc, argv, false));
odb::database_id db_id (db->id ());
// Create the database schema.