summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/debug/unordered_set
diff options
context:
space:
mode:
authorfdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-22 19:53:38 +0000
committerfdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-22 19:53:38 +0000
commit5b045227d27911ce3989cc333adac2a0e4c18f6e (patch)
treea2cf1c94b9e7e7849736885c79a89fe82bfc58d3 /libstdc++-v3/include/debug/unordered_set
parent3460f326a401b785f84b6b31c618274a38a510cd (diff)
downloadppe42-gcc-5b045227d27911ce3989cc333adac2a0e4c18f6e.tar.gz
ppe42-gcc-5b045227d27911ce3989cc333adac2a0e4c18f6e.zip
2012-10-22 François Dumont <fdumont@gcc.gnu.org>
* include/bits/unordered_set.h (unordered_set<>): Prefer aggregation to inheritance with _Hashtable. (unordered_multiset<>): Likewise. * include/debug/unordered_set (operator==): Adapt. * include/profile/unordered_set (operator==): Adapt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192695 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/debug/unordered_set')
-rw-r--r--libstdc++-v3/include/debug/unordered_set4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/debug/unordered_set b/libstdc++-v3/include/debug/unordered_set
index 07d2893b839..8cae0c9c222 100644
--- a/libstdc++-v3/include/debug/unordered_set
+++ b/libstdc++-v3/include/debug/unordered_set
@@ -479,7 +479,7 @@ namespace __debug
inline bool
operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x,
const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y)
- { return __x._M_equal(__y); }
+ { return __x._M_base() == __y._M_base(); }
template<typename _Value, typename _Hash, typename _Pred, typename _Alloc>
inline bool
@@ -912,7 +912,7 @@ namespace __debug
inline bool
operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x,
const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y)
- { return __x._M_equal(__y); }
+ { return __x._M_base() == __y._M_base(); }
template<typename _Value, typename _Hash, typename _Pred, typename _Alloc>
inline bool
OpenPOWER on IntegriCloud