Boost logo

Boost-Commit :

From: igaztanaga_at_[hidden]
Date: 2008-07-10 10:37:21


Author: igaztanaga
Date: 2008-07-10 10:37:20 EDT (Thu, 10 Jul 2008)
New Revision: 47288
URL: http://svn.boost.org/trac/boost/changeset/47288

Log:
Added comparison operators to fix como errors
Text files modified:
   branches/release/libs/intrusive/test/itestvalue.hpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: branches/release/libs/intrusive/test/itestvalue.hpp
==============================================================================
--- branches/release/libs/intrusive/test/itestvalue.hpp (original)
+++ branches/release/libs/intrusive/test/itestvalue.hpp 2008-07-10 10:37:20 EDT (Thu, 10 Jul 2008)
@@ -380,6 +380,9 @@
    bool operator==(const testvalue &other) const
    { return value_ == other.value_; }
 
+ bool operator!=(const testvalue &other) const
+ { return value_ != other.value_; }
+
    friend bool operator< (int other1, const testvalue &other2)
    { return other1 < other2.value_; }
 
@@ -391,6 +394,12 @@
 
    friend bool operator== (const testvalue &other1, int other2)
    { return other1.value_ == other2; }
+
+ friend bool operator!= (int other1, const testvalue &other2)
+ { return other1 != other2.value_; }
+
+ friend bool operator!= (const testvalue &other1, int other2)
+ { return other1.value_ != other2; }
 };
 
 template<class VoidPointer, bool ConstantTimeSize>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk