#include <boost/scoped_array.hpp>
#include <boost/intrusive_ptr.hpp>
+#include <boost/config.hpp>
+
#include <memory>
+
template<class T, class U> void assert_same_type( T** pt = 0, U** pu = 0 )
{
pt = pu;
assert_same_type< boost::pointer_to_other< boost::intrusive_ptr<X>, void >::type, boost::intrusive_ptr<void> >();
assert_same_type< boost::pointer_to_other< boost::intrusive_ptr<void>, Y >::type, boost::intrusive_ptr<Y> >();
+#if !defined( BOOST_NO_AUTO_PTR )
+
// auto_ptr
assert_same_type< boost::pointer_to_other< std::auto_ptr<X>, Y >::type, std::auto_ptr<Y> >();
assert_same_type< boost::pointer_to_other< std::auto_ptr<X>, void >::type, std::auto_ptr<void> >();
assert_same_type< boost::pointer_to_other< std::auto_ptr<void>, Y >::type, std::auto_ptr<Y> >();
+#endif
+
// raw pointer
assert_same_type< boost::pointer_to_other< X *, Y >::type, Y * >();