From 219cba3efa5358dd0deea7f54db403b149bbc2a0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 16 Sep 2012 12:28:48 +0200 Subject: Add operator!= which is expected by newer Boost unordered containers --- boost/common/unordered/test.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'boost/common') 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; -- cgit v1.1