re PR libstdc++/56627 (class hash instead of struct hash)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 31 Jul 2013 14:36:13 +0000 (14:36 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 31 Jul 2013 14:36:13 +0000 (14:36 +0000)
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.

From-SVN: r201377

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_bvector.h
libstdc++-v3/include/std/bitset

index 10daa9f..9b9efa7 100644 (file)
@@ -1,5 +1,13 @@
 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.
+
+2013-07-31  Paolo Carlini  <paolo.carlini@oracle.com>
+
        * src/c++11/functexcept.cc: Do not include the whole <regex>.
        * src/c++11/regex.cc: Likewise.
 
index 887ea16..468fad0 100644 (file)
@@ -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 08ba2cd..1da6baf 100644 (file)
@@ -760,7 +760,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
       }
 
 #if __cplusplus >= 201103L
-      template<typename> friend class hash;
+      template<typename> friend struct hash;
 #endif
 
     public: