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_post.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/py_post.cc') diff --git a/src/py_post.cc b/src/py_post.cc index 64bdde83..80e7ee52 100644 --- a/src/py_post.cc +++ b/src/py_post.cc @@ -169,13 +169,13 @@ void export_post() .def("has_xdata", &post_t::has_xdata) .def("clear_xdata", &post_t::clear_xdata) .def("xdata", py_xdata, - return_value_policy()) + return_internal_reference<>()) .def("add_to_value", &post_t::add_to_value) .def("set_reported_account", &post_t::set_reported_account) .def("reported_account", py_reported_account, - return_value_policy()) + return_internal_reference<>()) ; } -- cgit v1.2.3