Define std::enable_shared_from_this::weak_from_this
authorJonathan Wakely <jwakely@redhat.com>
Thu, 4 Aug 2016 12:33:10 +0000 (13:33 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 4 Aug 2016 12:33:10 +0000 (13:33 +0100)
commit9a8e528cf1e5aa1a7e7fa09716a3b5b87b56dc93
treed50041f0f0c70e41f67259b511c6e1e9adf5ed37
parent7d2035fafe935fd7552a2b764807fe1e0274f2be
Define std::enable_shared_from_this::weak_from_this

* testsuite/20_util/enable_shared_from_this/members/reinit.cc: Use
effective target not dg-options. Move check for feature-test macro to:
* testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc:
New test.

From-SVN: r239121
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/reinit.cc