summaryrefslogtreecommitdiff
path: root/src/py_amount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/py_amount.cc')
-rw-r--r--src/py_amount.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py_amount.cc b/src/py_amount.cc
index f10595e8..25ec8e26 100644
--- a/src/py_amount.cc
+++ b/src/py_amount.cc
@@ -263,7 +263,7 @@ internal precision."))
.add_property("commodity",
make_function(&amount_t::commodity,
- return_value_policy<reference_existing_object>()),
+ return_internal_reference<>()),
make_function(&amount_t::set_commodity,
with_custodian_and_ward<1, 2>()))
.def("has_commodity", &amount_t::has_commodity)