aboutsummaryrefslogtreecommitdiff
path: root/common/access
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-08-01 07:15:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-08-01 11:06:23 +0200
commit06c7e4520615c9d9d7882fb13be5632a709ad5ac (patch)
treeb40d71ac58585bd7092058a7cacb97968b846d2b /common/access
parent43e329f4cf9c175960154e395556eca23c170a75 (diff)
Add support for defining persistent objects as class template instantiations
Diffstat (limited to 'common/access')
-rw-r--r--common/access/driver.cxx3
1 files changed, 2 insertions, 1 deletions
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 ();