Base: add missing != operator to Quantity
This commit is contained in:
@@ -115,6 +115,11 @@ bool Quantity::operator ==(const Quantity& that) const
|
||||
return (this->_Value == that._Value) && (this->_Unit == that._Unit);
|
||||
}
|
||||
|
||||
bool Quantity::operator !=(const Quantity& that) const
|
||||
{
|
||||
return !(*this == that);
|
||||
}
|
||||
|
||||
bool Quantity::operator <(const Quantity& that) const
|
||||
{
|
||||
if (this->_Unit != that._Unit)
|
||||
|
||||
@@ -130,6 +130,7 @@ public:
|
||||
Quantity operator /(const Quantity &p) const;
|
||||
Quantity operator /(double p) const;
|
||||
bool operator ==(const Quantity&) const;
|
||||
bool operator !=(const Quantity&) const;
|
||||
bool operator < (const Quantity&) const;
|
||||
bool operator > (const Quantity&) const;
|
||||
bool operator <= (const Quantity&) const;
|
||||
|
||||
Reference in New Issue
Block a user