add const qualifier to comparison operator

This commit is contained in:
Artem Pavlenko 2024-04-25 10:55:04 +01:00
parent 0d0c471eb5
commit 6e81004cfb

View file

@ -94,7 +94,7 @@ struct coord<T, 2>
}
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;
}