Fixed stupid error in hash point example.

[SVN r30609]
This commit is contained in:
Daniel James committed 2005-08-20 20:39:21 +00:00
1 parent 1407dd5155
commit 26ba72d50f
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -20,7 +20,7 @@ public:
bool operator==(point const& other) const
{
return x = other.x && y == other.y;
return x == other.x && y == other.y;
}
friend std::size_t hash_value(point const& p)
@@ -49,3 +49,4 @@ int main()
assert(point_hasher(p1) != point_hasher(p2));
assert(point_hasher(p1) != point_hasher(p3));
}