diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:27:08 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:27:42 -0500 |
commit | 8bd16b2e8e61f914767e3d0973e83f7326f11cbc (patch) | |
tree | b7438f5e856b6d1be7fd1ab0c806d9eed9fa081e /src/py_xact.cc | |
parent | 34ee358f5e16d4018adf3db5dac31d2d9c16b9f5 (diff) | |
download | fork-ledger-8bd16b2e8e61f914767e3d0973e83f7326f11cbc.tar.gz fork-ledger-8bd16b2e8e61f914767e3d0973e83f7326f11cbc.tar.bz2 fork-ledger-8bd16b2e8e61f914767e3d0973e83f7326f11cbc.zip |
Simplified usage of Boost.Python in several cases
Diffstat (limited to 'src/py_xact.cc')
-rw-r--r-- | src/py_xact.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<item_t> > ("TransactionBase") .add_property("journal", make_getter(&xact_base_t::journal, - return_value_policy<reference_existing_object>()), + 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<reference_existing_object>()), + return_internal_reference<>()), make_setter(&auto_xact_finalizer_t::journal, with_custodian_and_ward<1, 2>())) .def("__call__", &auto_xact_finalizer_t::operator()) |