Created
September 15, 2015 13:40
-
-
Save afh/9cef0d4623355a587eee to your computer and use it in GitHub Desktop.
Patch to workaround compile issues when using boost 1.59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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