Add noexcept to enable_shared_from_this::weak_from_this
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 Oct 2016 11:44:05 +0000 (12:44 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 10 Oct 2016 11:44:05 +0000 (12:44 +0100)
commit208b8b69b660382eed5b1550f0ee945c614a6bb4
tree46f9c2a44c23b9d98e738c2cf06ffeacbd6b5012
parent30102051a53033464e4eff65fcfb7aafd45e9f1a
Add noexcept to enable_shared_from_this::weak_from_this

* include/bits/shared_ptr.h (enable_shared_from_this::weak_from_this):
Add noexcept.
* include/bits/shared_ptr_base.h
(__enable_shared_from_this::weak_from_this): Likewise.
* testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc:
Test exception-specification of weak_from_this.

From-SVN: r240917
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc