diff options
Diffstat (limited to 'common/transaction/callback/driver.cxx')
-rw-r--r-- | common/transaction/callback/driver.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/common/transaction/callback/driver.cxx b/common/transaction/callback/driver.cxx index 90564a4..d0af993 100644 --- a/common/transaction/callback/driver.cxx +++ b/common/transaction/callback/driver.cxx @@ -4,14 +4,17 @@ // Test transaction callbacks. // -#include <cstddef> // std::size_t -#include <cassert> +#include <memory> // std::unique_ptr +#include <cstddef> // std::size_t #include <iostream> #include <odb/database.hxx> #include <odb/transaction.hxx> -#include <common/common.hxx> +#include <libcommon/common.hxx> + +#undef NDEBUG +#include <cassert> using namespace std; using namespace odb::core; @@ -104,7 +107,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)); // We want to test both stack and dynamic slots. // |