From 1bdb9330e56e49ecd660f3aafdc2d349a20e3044 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Nov 2009 17:16:59 -0500 Subject: Simplified passing of scope objects in Python --- src/py_xact.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/py_xact.cc') 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()) + 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) -- cgit v1.2.3