"Peter Dimov" <[EMAIL PROTECTED]> writes: > From: "David Abrahams" <[EMAIL PROTECTED]> >> "Peter Dimov" <[EMAIL PROTECTED]> writes: >> >> > It's fairly easy to provide a get_pointer for std::auto_ptr. ;-) >> >> One that works for regular pointers as well, and works on msvc6? I'd >> love to see that! > > Now I'm not sure what you mean. > > namespace boost > { > template<class T> T * get_pointer(T * p) { return p; } > template<class T> T * get_pointer(std::auto_ptr<T> const & p) { return > p.get(); } > }
Oh, good point. I guess that VC6 just prevents us from supplying a generalized form: template<class T> typename T::element_type get_pointer(T const& p) { return p.get(); } Not very general anyway, I know ;-) -Dave -- David Abrahams [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost