LWG DR 2315. weak_ptr should be movable
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Nov 2014 11:54:08 +0000 (11:54 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 12 Nov 2014 11:54:08 +0000 (11:54 +0000)
commitf871d7f9f458d833fc2c388d2756a7a82cf2be40
treece45a32b179858152f2c04deda5517a3b88788d2
parent098c88fb10cb10d63dc3b64b09116af0f95a4a82
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.

From-SVN: r217413
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