From patchwork Mon Jul 18 16:09:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v3] libstdc++/48430 From: Paolo Carlini X-Patchwork-Id: 105318 Message-Id: <4E245ACD.4020704@oracle.com> To: "gcc-patches@gcc.gnu.org" Cc: libstdc++ Date: Mon, 18 Jul 2011 18:09:49 +0200 Hi, committed to mainline. Paolo. ////////////////////// 2011-07-18 Paolo Carlini PR libstdc++/48430 * include/bits/shared_ptr.h (struct hash>): Use __hash_base. * include/bits/unique_ptr.h (struct hash>): Likewise. Index: include/bits/shared_ptr.h =================================================================== --- include/bits/shared_ptr.h (revision 176398) +++ include/bits/shared_ptr.h (working copy) @@ -614,7 +614,7 @@ /// std::hash specialization for shared_ptr. template struct hash> - : public std::unary_function, size_t> + : public __hash_base> { size_t operator()(const shared_ptr<_Tp>& __s) const Index: include/bits/unique_ptr.h =================================================================== --- include/bits/unique_ptr.h (revision 176398) +++ include/bits/unique_ptr.h (working copy) @@ -542,7 +542,7 @@ /// std::hash specialization for unique_ptr. template struct hash> - : public std::unary_function, size_t> + : public __hash_base> { size_t operator()(const unique_ptr<_Tp, _Dp>& __u) const