Index: sequence_test_data.hpp =================================================================== --- sequence_test_data.hpp (revision 61716) +++ sequence_test_data.hpp (working copy) @@ -103,7 +103,8 @@ c.pop_back(); BOOST_CHECK( !c.empty() ); c.insert( c.end(), new T ); - c.insert( c.end(), std::auto_ptr( new T ) ); + std::auto_ptr ap(new T); + c.insert( c.end(), ap ); BOOST_CHECK_EQUAL( c.size(), 5u ); #if defined(BOOST_NO_SFINAE) || defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING) @@ -135,7 +136,7 @@ #else auto_type ptr = c.release( c.begin() ); #endif - std::auto_ptr ap = c.release(); + std::auto_ptr ap2 = c.release(); c = c2.clone(); BOOST_CHECK( !c.empty() ); auto_type ptr2 = c.replace( c.begin(), new T ); Index: associative_test_data.hpp =================================================================== --- associative_test_data.hpp (revision 61716) +++ associative_test_data.hpp (working copy) @@ -102,7 +102,8 @@ c.insert( c.end(), t ); c.insert( c.end(), std::auto_ptr( new T ) ); c.insert( new T ); - c.insert( std::auto_ptr( new T ) ); + std::auto_ptr ap( new T ); + c.insert( ap ); c3.insert( c.begin(), c.end() ); c.erase( c.begin() ); c3.erase( c3.begin(), c3.end() ); @@ -129,7 +130,7 @@ c.insert( c.end(), new T ); typename C::auto_type ptr2 = c.release( c.begin() ); - std::auto_ptr ap = c.release(); + std::auto_ptr ap2 = c.release(); c = c2.clone(); BOOST_MESSAGE( "finished release/clone test" ); Index: ptr_set.cpp =================================================================== --- ptr_set.cpp (revision 61716) +++ ptr_set.cpp (working copy) @@ -84,7 +84,8 @@ BOOST_CHECK_THROW( set.insert( 0 ), bad_ptr_container_operation ); set.insert( new int(0) ); - set.insert( std::auto_ptr( new int(1) ) ); + std::auto_ptr ap( new int(1) ); + set.insert( ap ); BOOST_CHECK_THROW( (set.replace(set.begin(), 0 )), bad_ptr_container_operation ); BOOST_CHECK_THROW( (set.replace(set.begin(), std::auto_ptr(0) )), bad_ptr_container_operation ); Index: ptr_unordered_set.cpp =================================================================== --- ptr_unordered_set.cpp (revision 61716) +++ ptr_unordered_set.cpp (working copy) @@ -106,7 +106,8 @@ BOOST_CHECK_THROW( set.insert( 0 ), bad_ptr_container_operation ); set.insert( new int(0) ); - set.insert( std::auto_ptr( new int(1) ) ); + std::auto_ptr ap( new int(1) ); + set.insert( ap ); BOOST_CHECK_THROW( (set.replace(set.begin(), 0 )), bad_ptr_container_operation ); BOOST_CHECK_THROW( (set.replace(set.begin(), std::auto_ptr(0) )), bad_ptr_container_operation );