Boost logo

Boost-Commit :

From: igaztanaga_at_[hidden]
Date: 2008-07-08 13:00:24


Author: igaztanaga
Date: 2008-07-08 13:00:24 EDT (Tue, 08 Jul 2008)
New Revision: 47239
URL: http://svn.boost.org/trac/boost/changeset/47239

Log:
Added operator==() to solve comeau errors
Text files modified:
   trunk/libs/intrusive/test/itestvalue.hpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: trunk/libs/intrusive/test/itestvalue.hpp
==============================================================================
--- trunk/libs/intrusive/test/itestvalue.hpp (original)
+++ trunk/libs/intrusive/test/itestvalue.hpp 2008-07-08 13:00:24 EDT (Tue, 08 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