diff options
-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 { |