Point inequality (!=) logic is incorrect
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
The != operator for Point class should be:
inline bool operator !=(const Point& a, const Point& b)
{
return !(a.x == b.x) || !(a.y == b.y);
}
Note the use of ||.
Original issue reported on code.google.com by ckohn...@gmail.com
on 11 Jul 2013 at 1:09