From 8bd16b2e8e61f914767e3d0973e83f7326f11cbc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Nov 2009 02:27:08 -0500 Subject: Simplified usage of Boost.Python in several cases --- src/py_xact.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/py_xact.cc') diff --git a/src/py_xact.cc b/src/py_xact.cc index 86e2e067..f5453d15 100644 --- a/src/py_xact.cc +++ b/src/py_xact.cc @@ -85,7 +85,7 @@ void export_xact() class_< xact_base_t, bases > ("TransactionBase") .add_property("journal", make_getter(&xact_base_t::journal, - return_value_policy()), + return_internal_reference<>()), make_setter(&xact_base_t::journal, with_custodian_and_ward<1, 2>())) @@ -146,7 +146,7 @@ void export_xact() ("AutomatedTransactionFinalizer") .add_property("journal", make_getter(&auto_xact_finalizer_t::journal, - return_value_policy()), + return_internal_reference<>()), make_setter(&auto_xact_finalizer_t::journal, with_custodian_and_ward<1, 2>())) .def("__call__", &auto_xact_finalizer_t::operator()) -- cgit v1.2.3