aboutsummaryrefslogtreecommitdiff
path: root/python/paludis_python.hh
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2013-08-27 21:56:44 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2013-08-27 21:56:44 +0100
commit64f0d9760ea6c390c8fc7b5366dc8cb2a31f38be (patch)
treef6ea9b9749987348ee528325cf3d693565d89d9e /python/paludis_python.hh
parent2d3a4c3ba2c414fa7d92713465c46d54a63f22d3 (diff)
downloadpaludis-64f0d9760ea6c390c8fc7b5366dc8cb2a31f38be.tar.gz
paludis-64f0d9760ea6c390c8fc7b5366dc8cb2a31f38be.tar.xz
Another attempt at new Boost compatibility
Instead of weird hacks with const_cast that aren't compatible with Boost's get_pointer implementation for shared_ptr, use non-const pointers as the representation and register conversions, like most of the classes did already.
Diffstat (limited to 'python/paludis_python.hh')
-rw-r--r--python/paludis_python.hh14
1 files changed, 0 insertions, 14 deletions
diff --git a/python/paludis_python.hh b/python/paludis_python.hh
index 9c6678bdf..0691fee57 100644
--- a/python/paludis_python.hh
+++ b/python/paludis_python.hh
@@ -38,13 +38,6 @@ namespace paludis
{
return p.get();
}
-
- // Make Boost.Python work with std::shared_ptr<const>
- template <typename T_>
- inline T_ * get_pointer(std::shared_ptr<const T_> const & p)
- {
- return const_cast<T_*>(p.get());
- }
}
#endif
@@ -58,13 +51,6 @@ namespace boost
{
typedef T_ type;
};
-
- // Make Boost.Python work with std::shared_ptr<const>
- template <typename T_>
- struct pointee<std::shared_ptr<const T_> >
- {
- typedef T_ type;
- };
}
}