Commit 4333e4dc by Paolo Carlini Committed by Paolo Carlini

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
parent c3f35647
2013-07-31 Paolo Carlini <paolo.carlini@oracle.com> 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/functexcept.cc: Do not include the whole <regex>.
* src/c++11/regex.cc: Likewise. * src/c++11/regex.cc: Likewise.
......
...@@ -528,7 +528,7 @@ template<typename _Alloc> ...@@ -528,7 +528,7 @@ template<typename _Alloc>
typedef _Bvector_base<_Alloc> _Base; typedef _Bvector_base<_Alloc> _Base;
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
template<typename> friend class hash; template<typename> friend struct hash;
#endif #endif
public: public:
......
...@@ -760,7 +760,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER ...@@ -760,7 +760,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
} }
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
template<typename> friend class hash; template<typename> friend struct hash;
#endif #endif
public: public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment