aboutsummaryrefslogtreecommitdiff
path: root/python/paludis_python.hh
diff options
context:
space:
mode:
Diffstat (limited to 'python/paludis_python.hh')
-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
{