forked from boostorg/intrusive
Added operator==() to solve comeau errors
[SVN r47239]
This commit is contained in:
@@ -380,6 +380,9 @@ struct testvalue
|
|||||||
bool operator==(const testvalue &other) const
|
bool operator==(const testvalue &other) const
|
||||||
{ return value_ == other.value_; }
|
{ return value_ == other.value_; }
|
||||||
|
|
||||||
|
bool operator!=(const testvalue &other) const
|
||||||
|
{ return value_ != other.value_; }
|
||||||
|
|
||||||
friend bool operator< (int other1, const testvalue &other2)
|
friend bool operator< (int other1, const testvalue &other2)
|
||||||
{ return other1 < other2.value_; }
|
{ return other1 < other2.value_; }
|
||||||
|
|
||||||
@@ -391,6 +394,12 @@ struct testvalue
|
|||||||
|
|
||||||
friend bool operator== (const testvalue &other1, int other2)
|
friend bool operator== (const testvalue &other1, int other2)
|
||||||
{ return other1.value_ == 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>
|
template<class VoidPointer, bool ConstantTimeSize>
|
||||||
|
Reference in New Issue
Block a user