Skip to content

Instantly share code, notes, and snippets.

@afh
Created September 15, 2015 13:40
Show Gist options
  • Save afh/9cef0d4623355a587eee to your computer and use it in GitHub Desktop.
Save afh/9cef0d4623355a587eee to your computer and use it in GitHub Desktop.
Patch to workaround compile issues when using boost 1.59
diff --git a/src/system.hh.in b/src/system.hh.in
index 8de27ad..c6654cb 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -253,6 +253,17 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <boost/iterator/indirect_iterator.hpp>
+#if BOOST_VERSION == 105900
+// 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment