Add std::get_deleter overload with correct signature

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

- include/bits/shared_ptr.h (get_deleter): Add overload matching standard signature.
- include/bits/shared_ptr_base.h (__shared_ptr): Declare new get_deleter overload as a friend.
- testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.

e69db42 Add std::get_deleter overload with correct signature
libstdc++-v3/ChangeLog | 8 ++++
libstdc++-v3/include/bits/shared_ptr.h | 12 +++++-
libstdc++-v3/include/bits/shared_ptr_base.h | 3 ++
.../20_util/shared_ptr/misc/get_deleter.cc | 44 ++++++++++++++++++++++
4 files changed, 66 insertions(+), 1 deletion(-)

Upstream: gcc.gnu.org


  • Share