re PR libstdc++/56627 (class hash instead of struct hash)

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
This commit is contained in:
Paolo Carlini 2013-07-31 14:36:13 +00:00 committed by Paolo Carlini
parent c3f35647ff
commit 4333e4dcf7
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
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>.

View 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:

View File

@ -760,7 +760,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
}
#if __cplusplus >= 201103L
template<typename> friend class hash;
template<typename> friend struct hash;
#endif
public: