summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/py_commodity.cc3
-rw-r--r--src/py_journal.cc3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/py_commodity.cc b/src/py_commodity.cc
index c457e64d..5aafa6ce 100644
--- a/src/py_commodity.cc
+++ b/src/py_commodity.cc
@@ -243,6 +243,9 @@ namespace {
void export_commodity()
{
+#if BOOST_VERSION >= 106000
+ python::register_ptr_to_python< shared_ptr<commodity_pool_t> >();
+#endif
class_< commodity_pool_t, shared_ptr<commodity_pool_t>,
boost::noncopyable > ("CommodityPool", no_init)
.add_property("null_commodity",
diff --git a/src/py_journal.cc b/src/py_journal.cc
index 879f9548..c1c38a90 100644
--- a/src/py_journal.cc
+++ b/src/py_journal.cc
@@ -232,6 +232,9 @@ void export_journal()
boost::noncopyable >("PostHandler")
;
+#if BOOST_VERSION >= 106000
+ python::register_ptr_to_python< shared_ptr<collector_wrapper> >();
+#endif
class_< collector_wrapper, shared_ptr<collector_wrapper>,
boost::noncopyable >("PostCollectorWrapper", no_init)
.def("__len__", &collector_wrapper::length)