mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-11 13:34:06 +00:00
Update operator()
implementations for predicate classes to properly return a bool
This commit is contained in:
parent
8473d8120f
commit
641c9fba9c
@ -290,7 +290,7 @@ namespace test {
|
||||
}
|
||||
}
|
||||
|
||||
std::size_t operator()(int x1, int x2) const { return x1 < x2; }
|
||||
bool operator()(int x1, int x2) const { return x1 < x2; }
|
||||
|
||||
friend bool operator==(less const& x1, less const& x2)
|
||||
{
|
||||
@ -331,7 +331,7 @@ namespace test {
|
||||
}
|
||||
}
|
||||
|
||||
std::size_t operator()(int x1, int x2) const { return x1 == x2; }
|
||||
bool operator()(int x1, int x2) const { return x1 == x2; }
|
||||
|
||||
friend bool operator==(equal_to const& x1, equal_to const& x2)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user