From 4333e4dcf71fae98cdbe872ce95aa3b11a128549 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 31 Jul 2013 14:36:13 +0000 Subject: [PATCH] re PR libstdc++/56627 (class hash instead of struct hash) 2013-07-31 Paolo Carlini 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 | 8 ++++++++ libstdc++-v3/include/bits/stl_bvector.h | 2 +- libstdc++-v3/include/std/bitset | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 10daa9f1b6d..9b9efa74255 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +2013-07-31 Paolo Carlini + + 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 * src/c++11/functexcept.cc: Do not include the whole . diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h index 887ea16ae55..468fad0dbd0 100644 --- a/libstdc++-v3/include/bits/stl_bvector.h +++ b/libstdc++-v3/include/bits/stl_bvector.h @@ -528,7 +528,7 @@ template typedef _Bvector_base<_Alloc> _Base; #if __cplusplus >= 201103L - template friend class hash; + template friend struct hash; #endif public: diff --git a/libstdc++-v3/include/std/bitset b/libstdc++-v3/include/std/bitset index 08ba2cd3857..1da6baf332f 100644 --- a/libstdc++-v3/include/std/bitset +++ b/libstdc++-v3/include/std/bitset @@ -760,7 +760,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER } #if __cplusplus >= 201103L - template friend class hash; + template friend struct hash; #endif public: -- 2.30.2