From 06c7e4520615c9d9d7882fb13be5632a709ad5ac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 1 Aug 2014 07:15:19 +0200 Subject: Add support for defining persistent objects as class template instantiations --- common/access/driver.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/access') diff --git a/common/access/driver.cxx b/common/access/driver.cxx index 4ec8433..05c18be 100644 --- a/common/access/driver.cxx +++ b/common/access/driver.cxx @@ -95,7 +95,8 @@ main (int argc, char* argv[]) { transaction t (db->begin ()); - db->persist (o.p1 ()); + const object1_ptr& ptr (o.p1 ()); + db->persist (ptr); db->persist (o.p2 ()); db->persist (o); t.commit (); -- cgit v1.1