From 5ac802457ccf985b334ee81252c185f1d3e1cfb7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 8 May 2024 21:29:52 +0300 Subject: Add boost/ and qt/ to odb-tests and odb-examples --- odb-tests/qt/pgsql/date-time/driver.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'odb-tests/qt/pgsql/date-time/driver.cxx') diff --git a/odb-tests/qt/pgsql/date-time/driver.cxx b/odb-tests/qt/pgsql/date-time/driver.cxx index 43a676d..f03d48c 100644 --- a/odb-tests/qt/pgsql/date-time/driver.cxx +++ b/odb-tests/qt/pgsql/date-time/driver.cxx @@ -4,8 +4,7 @@ // Test Qt date/time type persistence. PostgreSQL version. // -#include // std::auto_ptr -#include +#include // std::unique_ptr #include #include @@ -14,11 +13,14 @@ #include #include -#include +#include #include "test.hxx" #include "test-odb.hxx" +#undef NDEBUG +#include + using namespace std; using namespace odb::core; @@ -32,7 +34,7 @@ main (int argc, char* argv[]) try { - auto_ptr db (create_database (argc, argv)); + unique_ptr db (create_database (argc, argv)); // Check persistence of null values. // @@ -47,7 +49,7 @@ main (int argc, char* argv[]) { transaction t (db->begin ()); - auto_ptr ol (db->load (o.id)); + unique_ptr ol (db->load (o.id)); t.commit (); assert (ol->is_null ()); @@ -72,7 +74,7 @@ main (int argc, char* argv[]) { transaction t (db->begin ()); - auto_ptr ol (db->load (o.id)); + unique_ptr ol (db->load (o.id)); t.commit (); assert (*ol == o); @@ -93,7 +95,7 @@ main (int argc, char* argv[]) { transaction t (db->begin ()); - auto_ptr ol (db->load (o.id)); + unique_ptr ol (db->load (o.id)); t.commit (); assert (*ol == o); -- cgit v1.1