Use shared_ptr<T>::element_type in hash specializations
authorJonathan Wakely <jwakely@redhat.com>
Sat, 12 Nov 2016 03:24:34 +0000 (03:24 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 12 Nov 2016 03:24:34 +0000 (03:24 +0000)
commit0f88f1f2ab86b2e0f07996d4d1ab10a225264377
treeb632a7ef3817527dcb16a707e6cbb01821d82df2
parent9eb97e61d8f26c502f12de2fb12e9eeb9ac0895b
Use shared_ptr<T>::element_type in hash specializations

* include/bits/shared_ptr.h (hash<shared_ptr<T>>): Use element_type.
* include/bits/shared_ptr_base.h (hash<__shared_ptr<T, L>>): Likewise.

From-SVN: r242333
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/include/bits/shared_ptr_base.h