aboutsummaryrefslogtreecommitdiff
path: root/boost
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-16 12:28:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-16 12:28:48 +0200
commit219cba3efa5358dd0deea7f54db403b149bbc2a0 (patch)
tree9c0d35f84e1ceb817bd29ed2563901752695e8ef /boost
parent52e04cd68d9d7733912926e226181e11a84b1ed6 (diff)
Add operator!= which is expected by newer Boost unordered containers
Diffstat (limited to 'boost')
-rw-r--r--boost/common/unordered/test.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/boost/common/unordered/test.hxx b/boost/common/unordered/test.hxx
index 8bbf0a6..17e4e0e 100644
--- a/boost/common/unordered/test.hxx
+++ b/boost/common/unordered/test.hxx
@@ -30,6 +30,12 @@ operator== (const comp& x, const comp& y)
}
inline bool
+operator!= (const comp& x, const comp& y)
+{
+ return !(x == y);
+}
+
+inline bool
operator< (const comp& x, const comp& y)
{
return x.num != y.num ? x.num < y.num : x.str < y.str;