summaryrefslogtreecommitdiff
path: root/src/py_journal.cc
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2016-01-11 19:24:02 -0700
committerCraig Earls <enderw88@gmail.com>2016-01-11 19:24:02 -0700
commitd24be7446dc77cbdd80db6a105ad3b7a8fd919aa (patch)
treef4e3084e04c4e481ef59954e341e5f316d1648c4 /src/py_journal.cc
parentf709109417f2cbafe210dc41d5e9e98e6e9f5de0 (diff)
parentb5b70625d59305d0f3af3a9baad3931aba43df47 (diff)
downloadfork-ledger-d24be7446dc77cbdd80db6a105ad3b7a8fd919aa.tar.gz
fork-ledger-d24be7446dc77cbdd80db6a105ad3b7a8fd919aa.tar.bz2
fork-ledger-d24be7446dc77cbdd80db6a105ad3b7a8fd919aa.zip
Merge commit 'b5b70625d59305d0f3af3a9baad3931aba43df47' into next
Diffstat (limited to 'src/py_journal.cc')
-rw-r--r--src/py_journal.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/py_journal.cc b/src/py_journal.cc
index abbcd866..c1c38a90 100644
--- a/src/py_journal.cc
+++ b/src/py_journal.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
@@ -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)