add some missing operators to LineAndColumn

This commit is contained in:
Maxime Coste 2012-03-21 14:13:26 +00:00
parent 3dd82a2b85
commit 60fb523d62

View File

@ -51,10 +51,29 @@ struct LineAndColumn
return column <= other.column; return column <= other.column;
} }
bool operator> (const EffectiveType& other) const
{
if (line != other.line)
return line > other.line;
return column > other.column;
}
bool operator>= (const EffectiveType& other) const
{
if (line != other.line)
return line > other.line;
return column >= other.column;
}
bool operator== (const EffectiveType& other) const bool operator== (const EffectiveType& other) const
{ {
return line == other.line and column == other.column; return line == other.line and column == other.column;
} }
bool operator!= (const EffectiveType& other) const
{
return line != other.line or column != other.column;
}
}; };
} }