[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-patches
Subject:    [v3] libstdc++/56627
From:       Paolo Carlini <paolo.carlini () oracle ! com>
Date:       2013-07-31 14:39:08
Message-ID: 51F9218C.5010905 () oracle ! com
[Download RAW message or body]

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.

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

["CL_56627" (text/plain)]

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.

["patch_56627" (text/plain)]

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:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic