LWG DR 2315. weak_ptr should be movable
commiteb1b4b9d82438ad619182389f126395abd213450
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Nov 2014 11:54:08 +0000 (12 11:54 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Nov 2014 11:54:08 +0000 (12 11:54 +0000)
treece45a32b179858152f2c04deda5517a3b88788d2
parent9db66506d1a03b5d1fb6b131ced52f4c51341eee
LWG DR 2315. weak_ptr should be movable

* include/bits/shared_ptr.h (weak_ptr): Add move constructor and
assignment.
* include/bits/shared_ptr_base.h (__weak_count, __weak_ptr): Likewise.
Use nullptr and injected class name.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
* testsuite/20_util/shared_ptr/cons/void_neg.cc: Adjust dg-error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217413 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/void_neg.cc