Support move-only deleters in std::shared_ptr (LWG 2802)

Programming / Compilers / GCC - redi [138bc75d-0d04-0410-961f-82ee72b054a4] - 9 June 2017 09:20 EDT

- 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.

9abea74 Support move-only deleters in std::shared_ptr (LWG 2802)
libstdc++-v3/ChangeLog | 7 +++
libstdc++-v3/doc/xml/manual/intro.xml | 23 ++++++++++
libstdc++-v3/include/bits/shared_ptr.h | 8 ++--
libstdc++-v3/include/bits/shared_ptr_base.h | 20 +++++----
.../testsuite/20_util/shared_ptr/cons/lwg2802.cc | 51 ++++++++++++++++++++++
5 files changed, 96 insertions(+), 13 deletions(-)

Upstream: gcc.gnu.org


  • Share