summaryrefslogtreecommitdiff
path: root/src/py_journal.cc
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2016-01-02 12:14:31 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2016-01-02 12:14:31 +0100
commit11590e134eafa768ccc4a171cc7fb216e906095f (patch)
treeb5c88b4d4931ccb62642e2ad3822f32ffd1e2893 /src/py_journal.cc
parent9892878ca1b1218877537963bbf7a4ea1a8fed45 (diff)
downloadfork-ledger-11590e134eafa768ccc4a171cc7fb216e906095f.tar.gz
fork-ledger-11590e134eafa768ccc4a171cc7fb216e906095f.tar.bz2
fork-ledger-11590e134eafa768ccc4a171cc7fb216e906095f.zip
[python] Add fix for Boost.Python compile errors
when using boost version 1.60.0.
Diffstat (limited to 'src/py_journal.cc')
-rw-r--r--src/py_journal.cc3
1 files changed, 3 insertions, 0 deletions
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)