]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/smart_ptr/test/pointer_to_other_test.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / smart_ptr / test / pointer_to_other_test.cpp
index c2ee1879cb86101466d990cf87ebbb65559d8180..f1c6091f22c157da753515723b9c5a994acb1285 100644 (file)
 #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;
@@ -58,12 +61,16 @@ int main()
     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 * >();