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_commodity.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/py_commodity.cc') diff --git a/src/py_commodity.cc b/src/py_commodity.cc index c0412a45..7cd84f1c 100644 --- a/src/py_commodity.cc +++ b/src/py_commodity.cc @@ -130,12 +130,12 @@ void export_commodity() class_< commodity_pool_t, boost::noncopyable > ("CommodityPool", no_init) .add_property("null_commodity", make_getter(&commodity_pool_t::null_commodity, - return_value_policy()), + return_internal_reference<>()), make_setter(&commodity_pool_t::null_commodity, with_custodian_and_ward<1, 2>())) .add_property("default_commodity", make_getter(&commodity_pool_t::default_commodity, - return_value_policy()), + return_internal_reference<>()), make_setter(&commodity_pool_t::default_commodity, with_custodian_and_ward<1, 2>())) -- cgit v1.2.3