diff options
author | 2013-08-26 20:32:21 +0100 | |
---|---|---|
committer | 2013-08-26 20:32:21 +0100 | |
commit | 2d3a4c3ba2c414fa7d92713465c46d54a63f22d3 (patch) | |
tree | 79c02c123bf241202e5a2469e52304153ac789a9 | |
parent | 1b60f1a7d65066b6906ff5caa14739f67f49a80f (diff) | |
download | paludis-2d3a4c3ba2c414fa7d92713465c46d54a63f22d3.tar.gz paludis-2d3a4c3ba2c414fa7d92713465c46d54a63f22d3.tar.xz |
Hopefully fix Python for newer Boost
1.53 introduced std::shared_ptr support for boost::get_pointer,
conflicting with our implementation.
-rw-r--r-- | python/paludis_python.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/paludis_python.hh b/python/paludis_python.hh index ccf63e443..9c6678bdf 100644 --- a/python/paludis_python.hh +++ b/python/paludis_python.hh @@ -26,8 +26,10 @@ #include <paludis/util/attributes.hh> #include <paludis/util/named_value-fwd.hh> #include <boost/python.hpp> +#include <boost/version.hpp> #include <memory> +#if BOOST_VERSION < 105300 namespace paludis { // Make Boost.Python work with std::shared_ptr<> @@ -44,6 +46,7 @@ namespace paludis return const_cast<T_*>(p.get()); } } +#endif namespace boost { |