forked from boostorg/unordered
If the containers have equality comparisons, they'll also need 'hash_value'. Untested and undocumented, as before.
[SVN r42108]
This commit is contained in:
1 parent
c918da0249
commit
3002a898a0
6 files changed
+146
-2
No files matched your search
@@ -129,4 +129,9 @@ void equality_test(X& r, T&)
|
||||
|
||||
test::check_return_type<bool>::equals(a == b);
|
||||
test::check_return_type<bool>::equals(a != b);
|
||||
#if defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
|
||||
test::check_return_type<std::size_t>::equals(boost::hash_value(a));
|
||||
#else
|
||||
test::check_return_type<std::size_t>::equals(hash_value(a));
|
||||
#endif
|
||||
}
|
||||
@@ -57,6 +57,10 @@ namespace minimal
|
||||
return false;
|
||||
}
|
||||
|
||||
std::size_t hash_value(copy_constructible_equality_comparable) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
class default_copy_constructible
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user