summaryrefslogtreecommitdiff
path: root/src/py_commodity.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/py_commodity.cc')
-rw-r--r--src/py_commodity.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/py_commodity.cc b/src/py_commodity.cc
index 27a0e105..5aafa6ce 100644
--- a/src/py_commodity.cc
+++ b/src/py_commodity.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003-2015, John Wiegley. All rights reserved.
+ * Copyright (c) 2003-2016, John Wiegley. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -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",