Support move-only deleters in std::shared_ptr (LWG 2802)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 9 Jun 2017 13:20:37 +0000 (14:20 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 9 Jun 2017 13:20:37 +0000 (14:20 +0100)
commit53d01fd9e9568250e4304b5e0a5227e90f07cc40
treed590c6cb8eef7975fa4bc33e941166d33bfe828a
parent37f30285a934bf6eaf08e102658e3070030556ab
Support move-only deleters in std::shared_ptr (LWG 2802)

* doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
* include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
(LWG 2802).
* include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
(_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
* testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.

From-SVN: r249061
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/testsuite/20_util/shared_ptr/cons/lwg2802.cc [new file with mode: 0644]