aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2013-08-26 20:32:21 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2013-08-26 20:32:21 +0100
commit2d3a4c3ba2c414fa7d92713465c46d54a63f22d3 (patch)
tree79c02c123bf241202e5a2469e52304153ac789a9
parent1b60f1a7d65066b6906ff5caa14739f67f49a80f (diff)
downloadpaludis-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.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/paludis_python.hh b/python/paludis_python.hh
index ccf63e4..9c6678b 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
{