]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add noexcept to enable_shared_from_this::weak_from_this
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Oct 2016 11:44:05 +0000 (11:44 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Oct 2016 11:44:05 +0000 (11:44 +0000)
commit49ecfd71f7b05fa2b3791ab1133dcf2c877424aa
tree46f9c2a44c23b9d98e738c2cf06ffeacbd6b5012
parent6746d6316dbba6c55eed2417581fde5e39895d09
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240917 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/enable_shared_from_this/members/weak_from_this.cc