diff options
Diffstat (limited to 'src/py_xact.cc')
-rw-r--r-- | src/py_xact.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py_xact.cc b/src/py_xact.cc index f5453d15..d886bf90 100644 --- a/src/py_xact.cc +++ b/src/py_xact.cc @@ -91,7 +91,7 @@ void export_xact() .def("__len__", posts_len) .def("__getitem__", posts_getitem, - return_value_policy<reference_existing_object>()) + return_internal_reference<>()) .def("add_post", &xact_base_t::add_post, with_custodian_and_ward<1, 2>()) .def("remove_post", &xact_base_t::add_post) |