LineAndColumn: fix operator[+-]=

This commit is contained in:
Maxime Coste 2011-09-19 21:55:58 +00:00
parent 8a4a3e447b
commit 2f093d78b5

View File

@ -22,7 +22,7 @@ struct LineAndColumn
{
line += other.line;
column += other.column;
return *this;
return *static_cast<EffectiveType*>(this);
}
EffectiveType operator-(const EffectiveType& other) const
@ -34,7 +34,7 @@ struct LineAndColumn
{
line += other.line;
column += other.column;
return *this;
return *static_cast<EffectiveType*>(this);
}
};