public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [v3] libstdc++/48430
@ 2011-07-18 16:39 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2011-07-18 16:39 UTC (permalink / raw)
  To: gcc-patches; +Cc: libstdc++

[-- Attachment #1: Type: text/plain, Size: 60 bytes --]

Hi,

committed to mainline.

Paolo.

//////////////////////

[-- Attachment #2: CL_48430 --]
[-- Type: text/plain, Size: 219 bytes --]

2011-07-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/48430
	* include/bits/shared_ptr.h (struct hash<shared_ptr<>>): Use
	__hash_base.
	* include/bits/unique_ptr.h (struct hash<unique_ptr<>>): Likewise.

[-- Attachment #3: patch_48430 --]
[-- Type: text/plain, Size: 1044 bytes --]

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<typename _Tp>
     struct hash<shared_ptr<_Tp>>
-    : public std::unary_function<shared_ptr<_Tp>, size_t>
+    : public __hash_base<size_t, shared_ptr<_Tp>>
     {
       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<typename _Tp, typename _Dp>
     struct hash<unique_ptr<_Tp, _Dp>>
-    : public std::unary_function<unique_ptr<_Tp, _Dp>, size_t>
+    : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>
     {
       size_t
       operator()(const unique_ptr<_Tp, _Dp>& __u) const

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-18 16:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-18 16:39 [v3] libstdc++/48430 Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).