OSDN Git Service

* include/bits/forward_list.h (splice_after): Use forward.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 20_util / shared_ptr / assign / auto_ptr.cc
index e8c751b..e2ec078 100644 (file)
@@ -66,7 +66,7 @@ test01()
 
   std::shared_ptr<A> a(new A);
   std::auto_ptr<B> b(new B);
-  a = b;
+  a = std::move(b);
   VERIFY( a.get() != 0 );
   VERIFY( b.get() == 0 );
   VERIFY( A::ctor_count == 2 );