Define std::shared_ptr::weak_type
authorJonathan Wakely <jwakely@redhat.com>
Wed, 3 Aug 2016 19:09:57 +0000 (20:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 3 Aug 2016 19:09:57 +0000 (20:09 +0100)
commitf21f4463adb78df847273f328ac163461d4d1617
tree29b6a598681bb8aed157357b3f766054a7c9dc28
parent25f0609b21fe75b1e4b4a20ddee8c8f936318b81
Define std::shared_ptr::weak_type

* include/bits/shared_ptr.h (shared_ptr::weak_type): Define.
* include/bits/shared_ptr_base.h (__shared_ptr::weak_type): Define.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
* testsuite/20_util/shared_ptr/requirements/weak_type.cc: New test.
* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.

From-SVN: r239093
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
libstdc++-v3/testsuite/20_util/shared_ptr/requirements/weak_type.cc [new file with mode: 0644]