aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2013-08-26 20:32:21 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-09-02 09:13:06 +0100
commit179071d7a3696a51ec8b28ac50acb70fc58c963e (patch)
tree2ab75f527e5d015cf396ae9027c9b709d9aeb1c6
parente8f31428ff523cd180cc2ff48a5e36fc573ebca9 (diff)
downloadpaludis-179071d7a3696a51ec8b28ac50acb70fc58c963e.tar.gz
paludis-179071d7a3696a51ec8b28ac50acb70fc58c963e.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
{