diff options
Diffstat (limited to 'odb-tests/boost/common/optional/driver.cxx')
-rw-r--r-- | odb-tests/boost/common/optional/driver.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/odb-tests/boost/common/optional/driver.cxx b/odb-tests/boost/common/optional/driver.cxx index c2e3079..b256032 100644 --- a/odb-tests/boost/common/optional/driver.cxx +++ b/odb-tests/boost/common/optional/driver.cxx @@ -4,18 +4,20 @@ // Test boost::optional persistence. // -#include <memory> // std::auto_ptr -#include <cassert> +#include <memory> // std::unique_ptr #include <iostream> #include <odb/database.hxx> #include <odb/transaction.hxx> -#include <common/common.hxx> +#include <libcommon/common.hxx> #include "test.hxx" #include "test-odb.hxx" +#undef NDEBUG +#include <cassert> + using namespace std; using namespace odb::core; @@ -24,7 +26,7 @@ main (int argc, char* argv[]) { try { - auto_ptr<database> db (create_database (argc, argv)); + unique_ptr<database> db (create_database (argc, argv)); { object o1 (1); @@ -39,8 +41,8 @@ main (int argc, char* argv[]) { transaction t (db->begin ()); - auto_ptr<object> o1 (db->load<object> (1)); - auto_ptr<object> o2 (db->load<object> (2)); + unique_ptr<object> o1 (db->load<object> (1)); + unique_ptr<object> o2 (db->load<object> (2)); t.commit (); assert (!o1->str); |