summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2015-09-18 06:53:23 -0700
committerCraig Earls <enderw88@gmail.com>2015-09-18 06:53:23 -0700
commit5905c21ded741a9d17f67999a7e4c33da6c886c8 (patch)
tree8c373a1ceb8da8011cb41f1334b103eac3ef5b86 /src
parent1b3dfe93c53a6926d8027a2957be2645e22c9581 (diff)
parent88ad616d18b69eb03bc14eaa9ce6b32be90867a6 (diff)
downloadfork-ledger-5905c21ded741a9d17f67999a7e4c33da6c886c8.tar.gz
fork-ledger-5905c21ded741a9d17f67999a7e4c33da6c886c8.tar.bz2
fork-ledger-5905c21ded741a9d17f67999a7e4c33da6c886c8.zip
Merge commit '88ad616d18b69eb03bc14eaa9ce6b32be90867a6' into next
Diffstat (limited to 'src')
-rw-r--r--src/system.hh.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/system.hh.in b/src/system.hh.in
index 8de27ad6..cd7b8c2b 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -71,6 +71,7 @@
#define HAVE_BOOST_PYTHON @HAVE_BOOST_PYTHON@
#define HAVE_BOOST_REGEX_UNICODE @HAVE_BOOST_REGEX_UNICODE@
+#define HAVE_BOOST_159_ISSUE_39 @HAVE_BOOST_159_ISSUE_39@
#define DEBUG_MODE @DEBUG_MODE@
#define NO_ASSERTS @NO_ASSERTS@
@@ -253,6 +254,17 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <boost/iterator/indirect_iterator.hpp>
+#if BOOST_VERSION == 105900 && HAVE_BOOST_159_ISSUE_39
+// Fix for https://github.com/boostorg/python/issues/39
+namespace boost { namespace python {
+template <class D>
+inline object make_setter(D const& x)
+{
+ return detail::make_setter(x, default_call_policies(), is_member_pointer<D>(), 0);
+}
+}}
+#endif
+
#endif // HAVE_BOOST_PYTHON
#endif // _SYSTEM_HH