Added operator==() to solve comeau errors

[SVN r47239]
This commit is contained in:
Ion Gaztañaga
2008-07-08 17:00:24 +00:00
parent 2d24b82cdf
commit cff3efe689

View File

@@ -380,6 +380,9 @@ struct testvalue
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 @@ struct testvalue
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>