diff mbox

[v3] libstdc++/56627

Message ID 51F9218C.5010905@oracle.com
State New
Headers show

Commit Message

Paolo Carlini July 31, 2013, 2:39 p.m. UTC
Hi,

if you don't have anything better to do, plenty of details in the audit 
trail. Tested x86_64-linux, committed mainline and 4_8-branch.

Thanks,
Paolo.

////////////////////
2013-07-31  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/56627
	* include/bits/stl_bvector.h: Use friend struct hash intead of
	friend class hash to work around useless warnings produced by
	some compilers.
	* include/std/bitset: Likewise.
diff mbox

Patch

Index: include/bits/stl_bvector.h
===================================================================
--- include/bits/stl_bvector.h	(revision 201368)
+++ include/bits/stl_bvector.h	(working copy)
@@ -528,7 +528,7 @@  template<typename _Alloc>
     typedef _Bvector_base<_Alloc>			 _Base;
 
 #if __cplusplus >= 201103L
-    template<typename> friend class hash;
+    template<typename> friend struct hash;
 #endif
 
   public:
Index: include/std/bitset
===================================================================
--- include/std/bitset	(revision 201368)
+++ include/std/bitset	(working copy)
@@ -760,7 +760,7 @@  _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
       }
 
 #if __cplusplus >= 201103L
-      template<typename> friend class hash;
+      template<typename> friend struct hash;
 #endif
 
     public: