diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-12-13 21:57:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-23 21:20:44 +0300 |
commit | fc3fb39c90ab7fe5fccbe3f3bc0eb2645157bb96 (patch) | |
tree | 6c8c1bfb5fe89f7378b92ac066b4ca8ecfd25228 /common/transaction/basics/driver.cxx | |
parent | 02367faedb16b6186e8852de47e5b749dc48c2df (diff) |
Switch to build2
Diffstat (limited to 'common/transaction/basics/driver.cxx')
-rw-r--r-- | common/transaction/basics/driver.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/common/transaction/basics/driver.cxx b/common/transaction/basics/driver.cxx index 721561d..1833555 100644 --- a/common/transaction/basics/driver.cxx +++ b/common/transaction/basics/driver.cxx @@ -5,7 +5,7 @@ // #include <string> -#include <cassert> +#include <memory> // std::unique_ptr #include <iostream> #include <odb/tracer.hxx> @@ -14,8 +14,11 @@ #include <odb/statement.hxx> #include <odb/exceptions.hxx> -#include <common/common.hxx> -#include <common/concrete.hxx> +#include <libcommon/common.hxx> +#include <libcommon/concrete.hxx> + +#undef NDEBUG +#include <cassert> using namespace std; using namespace odb::core; @@ -49,7 +52,7 @@ main (int argc, char* argv[]) { { transaction_tracer tracer; - auto_ptr<database> db (create_database (argc, argv, false)); + unique_ptr<database> db (create_database (argc, argv, false)); db->tracer (tracer); assert (!transaction::has_current ()); @@ -137,7 +140,7 @@ main (int argc, char* argv[]) // Test early connection release. // { - auto_ptr<database> db (create_database (argc, argv, false, 1)); + unique_ptr<database> db (create_database (argc, argv, false, 1)); transaction t1 (db->begin ()); t1.commit (); transaction t2 (db->begin ()); |