add const
qualifier to comparison operator
This commit is contained in:
parent
0d0c471eb5
commit
6e81004cfb
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ struct coord<T, 2>
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T2>
|
template<typename T2>
|
||||||
bool operator==(coord<T2, 2> const& rhs)
|
bool operator==(coord<T2, 2> const& rhs) const
|
||||||
{
|
{
|
||||||
return x == rhs.x && y == rhs.y;
|
return x == rhs.x && y == rhs.y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue