Add std::get_deleter overload with correct signature
authorJonathan Wakely <jwakely@redhat.com>
Fri, 16 Jun 2017 15:20:14 +0000 (16:20 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 16 Jun 2017 15:20:14 +0000 (16:20 +0100)
commit78a8b676f1bd4fb799f3696486f45adde11a32cb
treefd65278f0441ea0f94fc851675fdef8c05a26662
parentd7b11178c4579f9c109c77609ef60dd0d6448598
Add std::get_deleter overload with correct signature

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

From-SVN: r249267
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/testsuite/20_util/shared_ptr/misc/get_deleter.cc [new file with mode: 0644]