From: David Abrahams (dave_at_[hidden])
Date: 2004-08-14 13:58:39
Jeff Mirwaisi <jeff_mirwaisi_at_[hidden]> writes:
> Currently (afaict) there isnt a specialization of remove_pointer that
> handles smart pointers.
> Providing a very generic specialization:
> template <typename T, template<typename> class Ptr> struct
> remove_pointer<Ptr<T> >;
> or a set of specializations that cover shared_ptr etc + auto_ptr
> explicitly, "seems" like a rational extension.
> Are there any potential problems, and if not can we get this added to
> type traits?
Aside from what I said earlier about opposing this, please see
boost/pointee.hpp, which I think does what you want.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk